mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Update mypy config
Remove 'files' configuration from the config to make sure that mypy runs quicker when invoked from the editor (where ideally it should only check the file being edited). Remove 'disallow_any_generics' from the config since we already have this configured centrally. And finally, do not allow variable redefinitions.
This commit is contained in:
parent
2ac612b696
commit
3495a7ef36
1 changed files with 1 additions and 5 deletions
|
|
@ -15,7 +15,7 @@ markers =
|
|||
data_file = .reports/coverage/data
|
||||
branch = true
|
||||
relative_files = true
|
||||
omit =
|
||||
omit =
|
||||
beets/test/*
|
||||
beetsplug/_typing.py
|
||||
|
||||
|
|
@ -34,7 +34,6 @@ exclude_also =
|
|||
show_contexts = true
|
||||
|
||||
[mypy]
|
||||
files = beets,beetsplug,test,extra,docs
|
||||
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
|
||||
|
|
@ -46,11 +45,8 @@ explicit_package_bases = true
|
|||
# config for all files.
|
||||
[[mypy-beets.plugins]]
|
||||
disallow_untyped_decorators = true
|
||||
disallow_any_generics = true
|
||||
check_untyped_defs = true
|
||||
allow_redefinition = true
|
||||
|
||||
[[mypy-beets.metadata_plugins]]
|
||||
disallow_untyped_decorators = true
|
||||
disallow_any_generics = true
|
||||
check_untyped_defs = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue