Skip to content

Commit 742d6a2

Browse files
Merge pull request #3019 from VWS-Python/codex/pylint-useless-suppression-error-20260520
[codex] Make useless Pylint suppressions fail lint
2 parents 05c15d7 + 1fe5f04 commit 742d6a2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ MASTER.load-plugins = [
204204
# Allow loading of arbitrary C extensions. Extensions are imported into the
205205
# active Python interpreter and may run arbitrary code.
206206
MASTER.unsafe-load-any-extension = false
207+
# Return non-zero exit code if useless-suppression is emitted.
208+
MAIN.fail-on = [
209+
"useless-suppression",
210+
]
207211
DEPRECATED_BUILTINS.bad-functions = [
208212
# Use Pylint until Ruff can ban bare builtin calls, or until custom rules
209213
# make this removable:

0 commit comments

Comments
 (0)