summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorŠarūnas Nejus <snejus@protonmail.com>2024-05-01 10:39:36 +0100
committerŠarūnas Nejus <snejus@protonmail.com>2024-05-07 21:16:24 +0100
commitc75f07a0da6c622d3cd0f5aad0a08edaea360dad (patch)
tree26fcd79e14b8dcd146718e657283b9ee201cf11a
parent1713011089f03319a58ac110bf5e210f1d7cfb05 (diff)
Define paths to lint in mypy configurationHEADmaster
-rw-r--r--setup.cfg1
-rw-r--r--tox.ini3
2 files changed, 2 insertions, 2 deletions
diff --git a/setup.cfg b/setup.cfg
index 8423ee3b8..5f6929d04 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -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
diff --git a/tox.ini b/tox.ini
index 6f303e872..9ab1ba613 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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