Repository navigation
feat(rules): offer nox's .nox environments in Python projects - #11
Merged
Merged
Conversation
nox keeps its session virtualenvs in ./.nox by default ("By default Nox
stores virtualenvs in ./.nox", https://nox.thea.codes/en/stable/usage.html).
Like .tox, the next nox run recreates them, so .nox is Safe. It is only a
candidate in a folder the Python rule already detects, and the guard
still checks it like every other folder.
New fixture python/match/noxfile; the rules-check snapshot counts 32
artifacts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
nox keeps its session virtualenvs in
./.nox. From its docs (https://nox.thea.codes/en/stable/usage.html): "By default Nox stores virtualenvs in./.nox, however, you can change this using--envdir".The Python rule already offers
.toxas Safe;.noxis the same kind of folder for nox, and the nextnoxrun recreates it. This adds it as Safe, restore hintnox.Why it is safe
pyproject.toml,requirements.txtorsetup.py) and only when.noxexists.guard.rs,deny.rsor the linter changes.Changes
engine/rules/python.toml: the.noxartifact, with the doc link in a comment.engine/rules/fixtures/python/match/noxfile(expects.venvand.nox)..noxunder Python, Safe.tests/snapshots/rules-check.json: 32 artifacts instead of 31.How tested
rule_fixtures_produce_the_expected_candidatesfails without the rule (the new fixture expects.nox) and passes with it.cargo fmt --all --check: okcargo clippy --all-targets --locked -- -D warnings: okcargo test --locked: 145 passed, 0 failedcargo run -q -p opensweep-cli -- rules-check rules: 11 rule files, 32 artifacts: okcd CleanCore && swift test(it decodes the engine's snapshots): 21 tests, 0 failures;scripts/check-swift-never-deletes.sh: okRULE-SCHEMA asks for two reviewers on rule changes.
🤖 Generated with Claude Code