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 3, 2024
1 parent 8d19823 commit e807465
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 @@ -141,6 +141,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 @@ -28,8 +28,7 @@ commands =
test: python -bb -m pytest -rs {posargs}
cov: coverage run -m pytest -rs {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 e807465

Please sign in to comment.