From a4c157413552732941d45d9af03f6100aa274815 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Tue, 1 Dec 2026 13:11:30 +0100 Subject: [PATCH] Enable the "deprecated" error code --- pyproject.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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