Skip to content

Commit 1fe5f04

Browse files
committed
Make useless Pylint suppressions fail lint
1 parent 94ef760 commit 1fe5f04

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
@@ -200,6 +200,10 @@ MASTER.load-plugins = [
200200
# Allow loading of arbitrary C extensions. Extensions are imported into the
201201
# active Python interpreter and may run arbitrary code.
202202
MASTER.unsafe-load-any-extension = false
203+
# Return non-zero exit code if useless-suppression is emitted.
204+
MAIN.fail-on = [
205+
"useless-suppression",
206+
]
203207
DEPRECATED_BUILTINS.bad-functions = [
204208
# Use Pylint until Ruff can ban bare builtin calls, or until custom rules
205209
# make this removable:

0 commit comments

Comments
 (0)