From 43301c4caad638346a05a50e300d72ecdbb7b450 Mon Sep 17 00:00:00 2001 From: Benedikt Date: Sun, 20 Apr 2025 10:43:10 +0200 Subject: [PATCH] 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: https://github.com/beetbox/beets/pull/5728 --- pyproject.toml | 9 --------- setup.cfg | 8 ++++++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6b705f68c..d985c54ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 diff --git a/setup.cfg b/setup.cfg index 3e2fee46a..e3472b04c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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