Skip to content

Commit

Permalink
Fix mypy config to only run against src and tests (#649)
Browse files Browse the repository at this point in the history
* Fix mypy config to only run against src and tests

* Ensure new mypy is installed
  • Loading branch information
sloria authored Jan 14, 2025
1 parent eea9d09 commit 45c95d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ select = [
]

[tool.mypy]
files = ["src", "tests"]
ignore_missing_imports = true
warn_unreachable = true
warn_unused_ignores = true
Expand Down
15 changes: 5 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,12 @@ deps =
lowest: sqlalchemy==1.4.40
commands = pytest {posargs}

[testenv:mypy-marshmallow3]
[testenv:mypy-marshmallow{3,dev}]
deps =
mypy
marshmallow>=3.18.0,<4.0.0
commands = mypy .

[testenv:mypy-marshmallowdev]
deps =
mypy
https://github.com/marshmallow-code/marshmallow/archive/dev.tar.gz
commands = mypy .
mypy>=1.14.1
marshmallow3: marshmallow>=3.18.0,<4.0.0
marshmallowdev: https://github.com/marshmallow-code/marshmallow/archive/dev.tar.gz
commands = mypy

[testenv:lint]
deps = pre-commit~=4.0.1
Expand Down

0 comments on commit 45c95d7

Please sign in to comment.