diff --git a/pyproject.toml b/pyproject.toml index 6a4752d..3d8040f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -468,8 +468,13 @@ disallow_untyped_decorators = true # Disallow functions without type annotations (or incomplete annotations) disallow_untyped_defs = true -# Require an error code in all "# type: ignore" comments -enable_error_code = ["ignore-without-code"] +# Enable error codes that are off by default +enable_error_code = [ + # Report usages of APIs marked with `@deprecated` + "deprecated", + # Require an error code in all "# type: ignore" comments + "ignore-without-code", +] # Check further edge cases that are rarely an issue in practice extra_checks = true