Skip to content

Commit c75f07a

Browse files
committed
Define paths to lint in mypy configuration
1 parent 1713011 commit c75f07a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.cfg

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 2 deletions
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)