mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
Define paths to lint in mypy configuration
This commit is contained in:
parent
1713011089
commit
c75f07a0da
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
3
tox.ini
3
tox.ini
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue