Skip to content

Commit a8d1df0

Browse files
committed
Define paths to lint in mypy configuration
1 parent 29f5040 commit a8d1df0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ per-file-ignores =
181181
./beets/mediafile.py:D
182182

183183
[mypy]
184+
files = beets,beetsplug,test
184185
allow_any_generics = false
185186
# FIXME: Would be better to actually type the libraries (if under our control),
186187
# or write our own stubs. For now, silence errors

tox.ini

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ passenv = INTEGRATION_TEST
2727
commands =
2828
test: python -m pytest {posargs}
2929
lint: python -m flake8 {posargs} {[_lint]files}
30-
mypy: mypy -p beets -p beetsplug
31-
mypy: mypy test
30+
mypy: mypy
3231

3332
[testenv:docs]
3433
basepython = python3.10

0 commit comments

Comments
 (0)