Skip to content

Commit ef5e2f7

Browse files
authored
pylint - fail for unnecessary pylint-disable comments (#7857)
By default pylint only reports on `useless-suppression` instances, but does not return an error exit code. Here we make it exit with failure so that useless-suppression-s are caught by the CI. Ref: https://pylint.readthedocs.io/en/stable/user_guide/messages/information/useless-suppression.html
1 parent 3f5c3c6 commit ef5e2f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dev_tools/conf/.pylintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
load-plugins=pylint.extensions.docstyle,pylint.extensions.docparams,pylint_copyright_checker
33
max-line-length=100
44
disable=all
5+
fail-on=I
56
ignore-paths=cirq-google/cirq_google/cloud/.*
67
ignore-patterns=.*_pb2\.py
78
output-format=colorized

0 commit comments

Comments
 (0)