which added some mypy config to pyproject.toml, leading to mypy ignoring
setup.cfg
 (this shows up in CI output for #5701, but is not very visible
since we currently ignore mypy errors)

Related: https://github.com/beetbox/beets/pull/5728
This commit is contained in:
Benedikt 2025-04-20 10:43:10 +02:00 committed by GitHub
parent c5bfbde175
commit 43301c4caa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 9 deletions

View file

@ -281,12 +281,3 @@ ignore-variadic-names = true
[tool.ruff.lint.pep8-naming]
classmethod-decorators = ["cached_classproperty"]
extend-ignore-names = ["assert*", "cached_classproperty"]
# Temporary, until we decide on a mypy
# config for all files.
[[tool.mypy.overrides]]
module = "beets.plugins"
disallow_untyped_decorators = true
disallow_any_generics = true
check_untyped_defs = true
allow_redefinition = true

View file

@ -41,3 +41,11 @@ allow_any_generics = false
ignore_missing_imports = true
namespace_packages = true
explicit_package_bases = true
# Temporary, until we decide on a mypy
# config for all files.
[[mypy-beets.plugins]]
disallow_untyped_decorators = true
disallow_any_generics = true
check_untyped_defs = true
allow_redefinition = true