diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ffd8754cbd2..552af606ecd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,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 c944c070ef2..4cd67bb4568 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -106,6 +106,7 @@ force-exclude = ''' files = "src" show_error_codes = true strict = true +enable_error_code = ["ignore-without-code"] # The following whitelist is used to allow for incremental adoption # of Mypy. Modules should be removed from this whitelist as and when