Skip to content

Commit d16d62e

Browse files
authored
Fix Mypy availability in unit sessions (#2222)
### What does this PR do? Generic unit Nox sessions collect a regression test that invokes Mypy, but those environments did not install the tool. Install the existing lint dependency group alongside the test dependencies so the behavioral check runs with the same interpreter as the suite. Type of change: Bug fix ### Testing Covered by the standard unit and code-quality CI workflows. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated the unit test environment to include development linting dependencies. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Johannes Rausch <jrausch@nvidia.com>
1 parent 4cb8905 commit d16d62e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def _cov_args():
7676
@nox.parametrize("torch_ver", [nox.param(k, id=k) for k in TORCH_VERSIONS])
7777
def unit(session, torch_ver, tf_ver):
7878
"""Non-Puzzletron unit tests across the generic dependency matrix."""
79-
session.install(TORCH_VERSIONS[torch_ver], "-e", ".[all,dev-test]")
79+
session.install(TORCH_VERSIONS[torch_ver], "-e", ".[all,dev-lint,dev-test]")
8080
tf_pin = TRANSFORMERS_VERSIONS[tf_ver]
8181
if tf_pin:
8282
session.install(tf_pin)

0 commit comments

Comments
 (0)