From 1fe5f0464aba56f8504bfb01f43347817fd193c3 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Wed, 20 May 2026 12:46:38 +0100 Subject: [PATCH] Make useless Pylint suppressions fail lint --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index c9b8b1b3..750ad714 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -200,6 +200,10 @@ MASTER.load-plugins = [ # Allow loading of arbitrary C extensions. Extensions are imported into the # active Python interpreter and may run arbitrary code. MASTER.unsafe-load-any-extension = false +# Return non-zero exit code if useless-suppression is emitted. +MAIN.fail-on = [ + "useless-suppression", +] DEPRECATED_BUILTINS.bad-functions = [ # Use Pylint until Ruff can ban bare builtin calls, or until custom rules # make this removable: