fix(hygiene): detect unpinned dependencies with environment markers - #107
Conversation
Signed-off-by: Rio Yu <52408936+rioyu123@users.noreply.github.com>
rng1995
left a comment
There was a problem hiding this comment.
One blocking marker-parsing case remains.
Signed-off-by: Rio Yu <52408936+rioyu123@users.noreply.github.com>
Signed-off-by: Rio Yu <52408936+rioyu123@users.noreply.github.com>
|
@rioyu123 : Can you resolve the merge conflicts? |
…nt-marker-pinning # Conflicts: # CHANGELOG.md
|
Resolved by merging the latest main and retaining both the upstream changelog entries and this PR's PEP 508 marker fix. The implementation and regression tests merged without conflicts; the focused hygiene suite passes (38 passed, 1 skipped). The updated head is ready for CI once GitHub Actions is approved. |
Signed-off-by: Rio Yu <52408936+rioyu123@users.noreply.github.com>
71caa17 to
0c2cb2e
Compare
|
The previous head |
Signed-off-by: Christopher Kevin <christopherk@nvidia.com>
All requested changes and review threads are resolved on current head b93037e; dismissing this stale review after maintainer approval.
Resolve CHANGELOG.md after merging upstream NVIDIA#99, NVIDIA#107, and NVIDIA#112.
Resolve CHANGELOG.md after merging upstream NVIDIA#99, NVIDIA#107, and NVIDIA#112.
Resolve CHANGELOG.md after merging upstream NVIDIA#99, NVIDIA#107, and NVIDIA#112.
Summary
requests; python_version < "3.13".==.Before this change, the validator searched the entire physical line for
[=<>!], so marker operators could hide an unversioned package:requests; python_version < "3.13"requests; sys_platform == "win32"requests>=2; python_version < "3.13"requests @ https://example.invalid/a;v=1/requests.whlKnown adjacent behavior remains out of scope: direct references keep their existing constraint policy, inline comments are not parsed, and backslash continuations are still evaluated as physical lines.
Verification
make lintmake test? ran the complete affected validator domain insteadmake buildResults:
uv run pytest -q tests/validators/test_hygiene.py? 26 passed, 1 skippeduv run pytest -q tests/validatorson Linux ? 847 passedmake PYTHON=.venv/bin/python lint? passedmake PYTHON=.venv/bin/python build? passedRelease Impact
CHANGELOG.md