Skip to content

Commit 351b7ef

Browse files
Merge pull request #3190 from VWS-Python/codex/pylint-useless-suppression-error-20260520
[codex] Make useless Pylint suppressions fail lint
2 parents 03c8544 + 8a5e946 commit 351b7ef

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
@@ -248,6 +248,10 @@ MASTER.per-file-ignores = [
248248
"docs/source/doccmd_*.py:invalid-name",
249249
"doccmd_README_rst_*.py:invalid-name",
250250
]
251+
# Return non-zero exit code if useless-suppression is emitted.
252+
MAIN.fail-on = [
253+
"useless-suppression",
254+
]
251255
DEPRECATED_BUILTINS.bad-functions = [
252256
# Use Pylint until Ruff can ban bare builtin calls, or until custom rules
253257
# make this removable:

0 commit comments

Comments
 (0)