Skip to content

Commit 43301c4

Browse files
authored
fixup #5701 (#5745)
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: #5728
1 parent c5bfbde commit 43301c4

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

pyproject.toml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,3 @@ ignore-variadic-names = true
281281
[tool.ruff.lint.pep8-naming]
282282
classmethod-decorators = ["cached_classproperty"]
283283
extend-ignore-names = ["assert*", "cached_classproperty"]
284-
285-
# Temporary, until we decide on a mypy
286-
# config for all files.
287-
[[tool.mypy.overrides]]
288-
module = "beets.plugins"
289-
disallow_untyped_decorators = true
290-
disallow_any_generics = true
291-
check_untyped_defs = true
292-
allow_redefinition = true

setup.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,11 @@ allow_any_generics = false
4141
ignore_missing_imports = true
4242
namespace_packages = true
4343
explicit_package_bases = true
44+
45+
# Temporary, until we decide on a mypy
46+
# config for all files.
47+
[[mypy-beets.plugins]]
48+
disallow_untyped_decorators = true
49+
disallow_any_generics = true
50+
check_untyped_defs = true
51+
allow_redefinition = true

0 commit comments

Comments
 (0)