diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2b0e1a193..16596cf78 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,6 @@ repos: hooks: - id: python-check-mock-methods - id: python-use-type-annotations - - id: python-check-blanket-type-ignore - id: python-check-blanket-noqa - repo: https://github.com/asottile/yesqa diff --git a/pyproject.toml b/pyproject.toml index d679064c2..118e03124 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,6 +74,7 @@ strict = true explicit_package_bases = true namespace_packages = true show_error_codes = true +enable_error_code = ["ignore-without-code"] mypy_path = "src" files = "src, tests" exclude = "(?x)(^tests/.*/fixtures | ^src/poetry/core/_vendor)"