From e7d93a5496eb92b9f127b362ffe43a5731ef9b7b Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Thu, 26 Nov 2026 16:36:39 +0100 Subject: [PATCH] Do not run `mypy` for now --- noxfile.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/noxfile.py b/noxfile.py index 6ce2491..d3511bd 100644 --- a/noxfile.py +++ b/noxfile.py @@ -191,7 +191,8 @@ def lint_code(session: Session) -> None: 'flake8-pyproject', 'flake8-pytest-style', 'isort', - 'mypy', + # TODO: See comment on `mypy` below + # 'mypy', ) # Interpret extra arguments as locations of source files. @@ -205,15 +206,12 @@ def lint_code(session: Session) -> None: session.run('isort', '--version') session.run('isort', '--check-only', *locations) - # For mypy, only lint *.py files to be packaged. - mypy_locations = [ - path for path in locations if path.startswith(PACKAGE_SOURCE_LOCATION) - ] - if mypy_locations: - session.run('mypy', '--version') - session.run('mypy', *mypy_locations) - else: - session.log('No paths to be checked with mypy') + # TODO: Include `mypy` once it passes + # - Only for the *.py files to be packaged + # - It then needs the developed package and its dependencies installed + # as it treats missing packages as `Any` and reports false successes + # session.run('mypy', '--version') + # session.run('mypy', PACKAGE_SOURCE_LOCATION) @nox.session(name='test', python=MAIN_PYTHON)