Skip to content

Commit

Permalink
Define paths to lint in mypy configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
snejus committed May 7, 2024
1 parent 1713011 commit c75f07a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c75f07a

Please sign in to comment.