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 ./beets/mediafile.py:D
[mypy] [mypy]
files = beets,beetsplug,test
allow_any_generics = false allow_any_generics = false
# FIXME: Would be better to actually type the libraries (if under our control), # FIXME: Would be better to actually type the libraries (if under our control),
# or write our own stubs. For now, silence errors # or write our own stubs. For now, silence errors

View file

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