Skip to content

Commit a61d6c2

Browse files
committed
Define paths to lint in mypy configuration
1 parent 42125e7 commit a61d6c2

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
@@ -141,6 +141,7 @@ per-file-ignores =
141141
./beets/mediafile.py:D
142142

143143
[mypy]
144+
files = beets,beetsplug,test
144145
allow_any_generics = false
145146
# FIXME: Would be better to actually type the libraries (if under our control),
146147
# or write our own stubs. For now, silence errors

tox.ini

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ commands =
2828
test: python -bb -m pytest -rs {posargs}
2929
cov: coverage run -m pytest -rs {posargs}
3030
lint: python -m flake8 {posargs} {[_lint]files}
31-
mypy: mypy -p beets -p beetsplug
32-
mypy: mypy test
31+
mypy: mypy
3332

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

0 commit comments

Comments
 (0)