Define paths to lint in mypy configuration

This commit is contained in:
Šarūnas Nejus 2024-05-01 10:39:36 +01:00
parent 1713011089
commit c75f07a0da
2 changed files with 2 additions and 2 deletions

View file

@ -181,6 +181,7 @@ per-file-ignores =
./beets/mediafile.py:D
[mypy]
files = beets,beetsplug,test
allow_any_generics = false
# FIXME: Would be better to actually type the libraries (if under our control),
# or write our own stubs. For now, silence errors

View file

@ -27,8 +27,7 @@ passenv = INTEGRATION_TEST
commands =
test: python -m pytest {posargs}
lint: python -m flake8 {posargs} {[_lint]files}
mypy: mypy -p beets -p beetsplug
mypy: mypy test
mypy: mypy
[testenv:docs]
basepython = python3.10