source: pylintrc

Last change on this file was 1954:9923cf4e6153, checked in by Stefan Schwarzer <sschwarzer@…>, 18 months ago
Increase maximum line length to 88 This is Black's default.
File size: 8.1 KB
Line 
1[MASTER]
2
3# Specify a configuration file.
4#rcfile=
5
6# Python code to execute, usually for sys.path manipulation such as
7# pygtk.require().
8#init-hook=
9
10# Profiled execution.
11profile=no
12
13# Add files or directories to the blacklist. They should be base names, not
14# paths.
15ignore=CVS
16
17# Pickle collected data for later comparisons.
18persistent=yes
19
20# List of plugins (as comma separated values of python modules names) to load,
21# usually to register additional checkers.
22load-plugins=
23
24
25[MESSAGES CONTROL]
26
27# Enable the message, report, category or checker with the given id(s). You can
28# either give multiple identifier separated by comma (,) or put this option
29# multiple time. See also the "--disable" option for examples.
30#enable=
31
32# Disable the message, report, category or checker with the given id(s). You
33# can either give multiple identifiers separated by comma (,) or put this
34# option multiple times (only on the command line, not in the configuration
35# file where it should appear only once).You can also use "--disable=all" to
36# disable everything first and then reenable specific checks. For example, if
37# you want to run only the similarities checker, you can use "--disable=all
38# --enable=similarities". If you want to run only the classes checker, but have
39# no Warning level messages displayed, use"--disable=all --enable=classes
40# --disable=W"
41#disable=
42disable=
43  bad-continuation,
44  bad-whitespace,
45  invalid-name,
46  locally-disabled,
47  no-else-raise,
48  no-else-return,
49  star-args,
50  unnecessary-pass
51
52
53[REPORTS]
54
55# Set the output format. Available formats are text, parseable, colorized, msvs
56# (visual studio) and html. You can also give a reporter class, eg
57# mypackage.mymodule.MyReporterClass.
58output-format=text
59
60# Include message's id in output
61include-ids=no
62
63# Include symbolic ids of messages in output
64symbols=no
65
66# Put messages in a separate file for each module / package specified on the
67# command line instead of printing them on stdout. Reports (if any) will be
68# written in a file name "pylint_global.[txt|html]".
69files-output=no
70
71# Tells whether to display a full report or only the messages
72reports=no
73
74# Python expression which should return a note less than 10 (10 is the highest
75# note). You have access to the variables errors warning, statement which
76# respectively contain the number of errors / warnings messages and the total
77# number of statements analyzed. This is used by the global evaluation report
78# (RP0004).
79evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
80
81# Add a comment according to your evaluation note. This is used by the global
82# evaluation report (RP0004).
83comment=no
84
85
86[FORMAT]
87
88# Maximum number of characters on a single line.
89max-line-length=88
90
91# Maximum number of lines in a module
92max-module-lines=1000
93
94# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
95# tab).
96indent-string='    '
97
98# Regexp for a line that is allowed to be longer than the limit.
99ignore-long-lines=^\s*(# )?<?https?://\S+>?$
100
101[BASIC]
102
103# Required attributes for module, separated by a comma
104required-attributes=
105
106# List of builtins function names that should not be used, separated by a comma
107bad-functions=map,filter,apply,input
108
109# Regular expression which should only match correct module names
110module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
111
112# Regular expression which should only match correct module level names
113const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
114
115# Regular expression which should only match correct class names
116class-rgx=[A-Z_][a-zA-Z0-9]+$
117
118# Regular expression which should only match correct function names
119function-rgx=[a-z_][a-z0-9_]{2,30}$
120
121# Regular expression which should only match correct method names
122method-rgx=[a-z_][a-z0-9_]{2,30}$
123
124# Regular expression which should only match correct instance attribute names
125attr-rgx=[a-z_][a-z0-9_]{2,30}$
126
127# Regular expression which should only match correct argument names
128argument-rgx=[a-z_][a-z0-9_]{2,30}$
129
130# Regular expression which should only match correct variable names
131variable-rgx=[a-z_][a-z0-9_]{2,30}$
132
133# Regular expression which should only match correct list comprehension /
134# generator expression variable names
135inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
136
137# Good variable names which should always be accepted, separated by a comma
138good-names=i,j,k,ex,Run,_
139
140# Bad variable names which should always be refused, separated by a comma
141bad-names=foo,bar,baz,toto,tutu,tata
142
143# Regular expression which should only match functions or classes name which do
144# not require a docstring
145no-docstring-rgx=__.*__
146
147
148[SIMILARITIES]
149
150# Minimum lines number of a similarity.
151min-similarity-lines=5
152
153# Ignore comments when computing similarities.
154ignore-comments=yes
155
156# Ignore docstrings when computing similarities.
157ignore-docstrings=yes
158
159# Ignore imports when computing similarities.
160ignore-imports=no
161
162
163[MISCELLANEOUS]
164
165# List of note tags to take in consideration, separated by a comma.
166notes=FIXME,XXX,TODO
167
168
169[TYPECHECK]
170
171# Tells whether missing members accessed in mixin class should be ignored. A
172# mixin class is detected if its name ends with "mixin" (case insensitive).
173ignore-mixin-members=yes
174
175# List of classes names for which member attributes should not be checked
176# (useful for classes with attributes dynamically set).
177ignored-classes=SQLObject
178
179# When zope mode is activated, add a predefined set of Zope acquired attributes
180# to generated-members.
181zope=no
182
183# List of members which are set dynamically and missed by pylint inference
184# system, and so shouldn't trigger E0201 when accessed. Python regular
185# expressions are accepted.
186generated-members=REQUEST,acl_users,aq_parent
187
188
189[VARIABLES]
190
191# Tells whether we should check for unused import in __init__ files.
192init-import=no
193
194# A regular expression matching the beginning of the name of dummy variables
195# (i.e. not used).
196dummy-variables-rgx=_|dummy
197
198# List of additional names supposed to be defined in builtins. Remember that
199# you should avoid to define new builtins when possible.
200additional-builtins=
201
202
203[IMPORTS]
204
205# Deprecated modules which should not be used, separated by a comma
206deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
207
208# Create a graph of every (i.e. internal and external) dependencies in the
209# given file (report RP0402 must not be disabled)
210import-graph=
211
212# Create a graph of external dependencies in the given file (report RP0402 must
213# not be disabled)
214ext-import-graph=
215
216# Create a graph of internal dependencies in the given file (report RP0402 must
217# not be disabled)
218int-import-graph=
219
220
221[DESIGN]
222
223# Maximum number of arguments for function / method
224max-args=5
225
226# Argument names that match this expression will be ignored. Default to name
227# with leading underscore
228ignored-argument-names=_.*
229
230# Maximum number of locals for function / method body
231max-locals=15
232
233# Maximum number of return / yield for function / method body
234max-returns=6
235
236# Maximum number of branch for function / method body
237max-branchs=12
238
239# Maximum number of statements in function / method body
240max-statements=50
241
242# Maximum number of parents for a class (see R0901).
243max-parents=7
244
245# Maximum number of attributes for a class (see R0902).
246max-attributes=7
247
248# Minimum number of public methods for a class (see R0903).
249min-public-methods=2
250
251# Maximum number of public methods for a class (see R0904).
252max-public-methods=20
253
254
255[CLASSES]
256
257# List of interface methods to ignore, separated by a comma. This is used for
258# instance to not check methods defines in Zope's Interface base class.
259ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
260
261# List of method names used to declare (i.e. assign) instance attributes.
262defining-attr-methods=__init__,__new__,setUp
263
264# List of valid names for the first argument in a class method.
265valid-classmethod-first-arg=cls
266
267# List of valid names for the first argument in a metaclass class method.
268valid-metaclass-classmethod-first-arg=mcs
269
270
271[EXCEPTIONS]
272
273# Exceptions that will emit a warning when being caught. Defaults to
274# "Exception"
275overgeneral-exceptions=Exception
Note: See TracBrowser for help on using the repository browser.