这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@tmager
Copy link
Contributor

@tmager tmager commented May 13, 2025

This nox_utils is based on nox_utils as it existed in opendp/tumult-analytics@f534dd2, but it contains some significant changes:

  • Sessions now use Poetry dependency groups to figure out what packages to install, rather than listing all of the packages explicitly. As a result, nox_poetry is no longer needed to ensure that the package versions nox installs match those in the Poetry lock. This should both allow for more per-package customization and minimize the number of code changes required in this repository.
  • The main class for creating sessions has been renamed and its constructor has been significantly changed. Most notably, it now takes options directly as keyword arguments.
  • nox_utils is now linted, and uses itself to set up its own noxfile.

Not all sessions that were previously available have been set up yet. So far lint, test, docs, and dependency audit sessions are available; more will be added over time, but this should cover basic development needs up until we need to make a release.

@tmager tmager self-assigned this May 13, 2025
@tmager tmager requested a review from Maegereg May 13, 2025 00:07
@tmager
Copy link
Contributor Author

tmager commented May 13, 2025

One other thing to note: this assumes that we will use a src/ layout for Analytics like we do for Core. This should be a straightforward change, the inconsistency between the two seemed like an odd thing to keep supporting.

@tmager
Copy link
Contributor Author

tmager commented May 13, 2025

opendp/tumult-core#2 shows most of the changes needed to make use of this -- I still need to clean up the noxfile a bit and fix some lints that have mysteriously appeared, but it should give a sense of what this will look like.

@tmager tmager force-pushed the tmager/nox-utils branch 2 times, most recently from 7c63b1c to 26827b5 Compare May 13, 2025 22:09
This `nox_utils` is based on `nox_utils` as it existed in
opendp/tumult-analytics@f534dd2, but it
contains some significant changes:
* Sessions now use Poetry dependency groups to figure out what packages to
  install, rather than listing all of the packages explicitly. As a result,
  `nox_poetry` is no longer needed to ensure that the package versions nox
  installs match those in the Poetry lock. This should both allow for more
  per-package customization and minimize the number of code changes required
  in this repository.
* The main class for creating sessions has been renamed and its constructor has
  been significantly changed. Most notably, it now takes options directly as
  keyword arguments.
* `nox_utils` is now linted, and uses itself to set up its own noxfile.

Not all sessions that were previously available have been set up yet. So far
lint, test, docs, and dependency audit sessions are available; more will be
added over time, but this should cover basic development needs up until we need
to make a release.
@tmager tmager force-pushed the tmager/nox-utils branch from 26827b5 to f5253b0 Compare May 14, 2025 01:55
@tmager tmager merged commit 0eb5545 into main May 14, 2025
@tmager tmager deleted the tmager/nox-utils branch May 14, 2025 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants