Skip to content

Commit 8a82117

Browse files
committedSep 8, 2013
Some adaptations in rcfile for pylint 1.0.
1 parent bbcdeb2 commit 8a82117

File tree

1 file changed

+15
-28
lines changed

1 file changed

+15
-28
lines changed
 

‎.pylintrc

+15-28
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,12 @@ load-plugins=
3535

3636
[MESSAGES CONTROL]
3737

38-
# Enable only checker(s) with the given id(s). This option conflict with the
39-
# disable-checker option
40-
#enable-checker=
41-
42-
# Enable all checker(s) except those with the given id(s). This option conflict
43-
# with the disable-checker option
44-
#disable-checker=
45-
46-
# Enable all messages in the listed categories.
47-
#enable-msg-cat=
48-
49-
# Disable all messages in the listed categories.
50-
#disable-msg-cat=
51-
5238
# Enable the message(s) with the given id(s).
53-
#enable-msg=
39+
#enable=
5440

5541
# Disable the message(s) with the given id(s).
56-
#disable-msg=
57-
disable-msg=W0122,W0142,W0201,W0212,W0223,W0403,W0603,W0613,W0614,W0621,W0622,W0703
42+
#disable=
43+
disable=exec-statement,star-args,attribute-defined-outside-init,protected-access,abstract-method,relative-import,global-statement,unused-argument,unused-wildcard-import,redefined-outer-name,redefined-builtin,broad-except
5844

5945

6046
[REPORTS]
@@ -85,12 +71,6 @@ evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / stateme
8571
# evaluation report (R0004).
8672
comment=no
8773

88-
# Enable the report(s) with the given id(s).
89-
#enable-report=
90-
91-
# Disable the report(s) with the given id(s).
92-
#disable-report=
93-
9474

9575
# checks for :
9676
# * doc strings
@@ -107,10 +87,14 @@ comment=no
10787
# Required attributes for module, separated by a comma
10888
required-attributes=
10989

110-
# Regular expression which should only match functions or classes name which do
111-
# not require a docstring
90+
# Regular expression which should only match function or class names that do
91+
# not require a docstring.
11292
no-docstring-rgx=__.*__
11393

94+
# Minimum line length for functions/classes that require docstrings, shorter
95+
# ones are exempt.
96+
docstring-min-length=-1
97+
11498
# Regular expression which should only match correct module names
11599
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
116100

@@ -187,7 +171,7 @@ acquired-members=REQUEST,acl_users,aq_parent
187171
init-import=no
188172

189173
# A regular expression matching names used for dummy variables (i.e. not used).
190-
dummy-variables-rgx=_|dummy
174+
dummy-variables-rgx=_$|dummy
191175

192176
# List of additional names supposed to be defined in builtins. Remember that
193177
# you should avoid to define new builtins when possible.
@@ -230,8 +214,8 @@ max-locals=30
230214
max-returns=6
231215

232216
# Maximum number of branch for function / method body
233-
#max-branchs=12
234-
max-branchs=30
217+
#max-branches=12
218+
max-branches=30
235219

236220
# Maximum number of statements in function / method body
237221
#max-statements=50
@@ -290,6 +274,9 @@ int-import-graph=
290274
#max-line-length=80
291275
max-line-length=100
292276

277+
# Regexp for a line that is allowed to be longer than the limit.
278+
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
279+
293280
# Maximum number of lines in a module
294281
#max-module-lines=1000
295282
max-module-lines=1500

0 commit comments

Comments
 (0)