Skip to content

Commit 06800cf

Browse files
committed
Suppress new pylint 1.6 opinions for *all* files, not just tests.
See googleapis#1968 for eventual reversal. This change reverts googleapis#1957 in favor of a more global suppression.
1 parent 844ec53 commit 06800cf

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

scripts/pylintrc_default

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ load-plugins=pylint.extensions.check_docs
9090
# - no-name-in-module: Error gives a lot of false positives for names which
9191
# are defined dynamically. Also, any truly missing names
9292
# will be detected by our 100% code coverage.
93+
#
94+
# New opinions in pylint 1.6, enforcing PEP 257. #1968 for eventual fixes
95+
# - catching-non-exception
96+
# - missing-raises-doc
97+
# - missing-returns-doc
98+
# - redundant-returns-doc
99+
# - ungrouped-imports
93100
disable =
94101
maybe-no-member,
95102
no-member,
@@ -99,6 +106,11 @@ disable =
99106
redefined-variable-type,
100107
wrong-import-position,
101108
no-name-in-module,
109+
catching-non-exception,
110+
missing-raises-doc,
111+
missing-returns-doc,
112+
redundant-returns-doc,
113+
ungrouped-imports
102114

103115

104116
[REPORTS]

scripts/run_pylint.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@
5151
'import-error',
5252
'invalid-name',
5353
'missing-docstring',
54-
'missing-raises-doc',
55-
'missing-returns-doc',
5654
'no-init',
5755
'no-self-use',
5856
'superfluous-parens',

0 commit comments

Comments
 (0)