Skip to content

Commit d868ac9

Browse files
committed
Change pylint configuration
1 parent 4448fdb commit d868ac9

File tree

1 file changed

+9
-357
lines changed

1 file changed

+9
-357
lines changed

pylintrc

Lines changed: 9 additions & 357 deletions
Original file line numberDiff line numberDiff line change
@@ -1,363 +1,15 @@
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='import sys; sys.path.append("./")'
9-
10-
# Add files or directories to the blacklist. They should be base names, not
11-
# paths.
12-
ignore=CVS
13-
14-
# Pickle collected data for later comparisons.
15-
persistent=yes
16-
17-
# List of plugins (as comma separated values of python modules names) to load,
18-
# usually to register additional checkers.
19-
load-plugins=
20-
21-
# Use multiple processes to speed up Pylint.
22-
jobs=1
23-
24-
# Allow loading of arbitrary C extensions. Extensions are imported into the
25-
# active Python interpreter and may run arbitrary code.
26-
unsafe-load-any-extension=no
27-
28-
# A comma-separated list of package or module names from where C extensions may
29-
# be loaded. Extensions are loading into the active Python interpreter and may
30-
# run arbitrary code
31-
extension-pkg-whitelist=
32-
33-
# Allow optimization of some AST trees. This will activate a peephole AST
34-
# optimizer, which will apply various small optimizations. For instance, it can
35-
# be used to obtain the result of joining multiple strings with the addition
36-
# operator. Joining a lot of strings can lead to a maximum recursion error in
37-
# Pylint and this flag can prevent that. It has one side effect, the resulting
38-
# AST will be different than the one from reality.
39-
optimize-ast=no
1+
[BASIC]
2+
const-naming-style = snake_case
403

4+
[FORMAT]
5+
max-line-length = 200
416

427
[MESSAGES CONTROL]
43-
44-
# Only show warnings with the listed confidence levels. Leave empty to show
45-
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
46-
confidence=
47-
48-
# Enable the message, report, category or checker with the given id(s). You can
49-
# either give multiple identifier separated by comma (,) or put this option
50-
# multiple time. See also the "--disable" option for examples.
51-
#enable=
52-
53-
# Disable the message, report, category or checker with the given id(s). You
54-
# can either give multiple identifiers separated by comma (,) or put this
55-
# option multiple times (only on the command line, not in the configuration
56-
# file where it should appear only once).You can also use "--disable=all" to
57-
# disable everything first and then reenable specific checks. For example, if
58-
# you want to run only the similarities checker, you can use "--disable=all
59-
# --enable=similarities". If you want to run only the classes checker, but have
60-
# no Warning level messages displayed, use"--disable=all --enable=classes
61-
# --disable=W"
62-
disable=E1608,W1627,E1601,E1603,E1602,E1605,E1604,E1607,E1606,W1621,W1620,W1623,W1622,W1625,W1624,W1609,W1608,W1607,W1606,W1605,W1604,W1603,W1602,W1601,W1639,W1640,I0021,W1638,I0020,W1618,W1619,W1630,W1626,W1637,W1634,W1635,W1610,W1611,W1612,W1613,W1614,W1615,W1616,W1617,W1632,W1633,W0704,W1628,W1629,W1636,bad-whitespace,locally-disabled,fixme
63-
8+
disable=
9+
bad-continuation,
10+
bad-whitespace,
11+
duplicate-code,
12+
missing-docstring,
6413

6514
[REPORTS]
66-
67-
# Set the output format. Available formats are text, parseable, colorized, msvs
68-
# (visual studio) and html. You can also give a reporter class, eg
69-
# mypackage.mymodule.MyReporterClass.
70-
output-format=text
71-
72-
# Put messages in a separate file for each module / package specified on the
73-
# command line instead of printing them on stdout. Reports (if any) will be
74-
# written in a file name "pylint_global.[txt|html]".
75-
files-output=no
76-
77-
# Tells whether to display a full report or only the messages
7815
reports=yes
79-
80-
# Python expression which should return a note less than 10 (10 is the highest
81-
# note). You have access to the variables errors warning, statement which
82-
# respectively contain the number of errors / warnings messages and the total
83-
# number of statements analyzed. This is used by the global evaluation report
84-
# (RP0004).
85-
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
86-
87-
# Template used to display messages. This is a python new-style format string
88-
# used to format the message information. See doc for all details
89-
#msg-template=
90-
91-
92-
[SIMILARITIES]
93-
94-
# Minimum lines number of a similarity.
95-
min-similarity-lines=4
96-
97-
# Ignore comments when computing similarities.
98-
ignore-comments=yes
99-
100-
# Ignore docstrings when computing similarities.
101-
ignore-docstrings=yes
102-
103-
# Ignore imports when computing similarities.
104-
ignore-imports=no
105-
106-
107-
[MISCELLANEOUS]
108-
109-
# List of note tags to take in consideration, separated by a comma.
110-
notes=FIXME,XXX,TODO
111-
112-
113-
[VARIABLES]
114-
115-
# Tells whether we should check for unused import in __init__ files.
116-
init-import=no
117-
118-
# A regular expression matching the name of dummy variables (i.e. expectedly
119-
# not used).
120-
dummy-variables-rgx=_$|dummy
121-
122-
# List of additional names supposed to be defined in builtins. Remember that
123-
# you should avoid to define new builtins when possible.
124-
additional-builtins=
125-
126-
# List of strings which can identify a callback function by name. A callback
127-
# name must start or end with one of those strings.
128-
callbacks=cb_,_cb
129-
130-
131-
[BASIC]
132-
133-
# List of builtins function names that should not be used, separated by a comma
134-
bad-functions=map,filter,input
135-
136-
# Good variable names which should always be accepted, separated by a comma
137-
good-names=i,j,k,ex,Run,_,it,p4,fd
138-
139-
# Bad variable names which should always be refused, separated by a comma
140-
bad-names=foo,bar,baz,toto,tutu,tata
141-
142-
# Colon-delimited sets of names that determine each other's naming style when
143-
# the name regexes allow several styles.
144-
name-group=
145-
146-
# Include a hint for the correct naming format with invalid-name
147-
include-naming-hint=no
148-
149-
# Regular expression matching correct function names
150-
function-rgx=[a-z_][a-z0-9_]{2,40}$
151-
152-
# Naming hint for function names
153-
function-name-hint=[a-z_][a-z0-9_]{2,30}$
154-
155-
# Regular expression matching correct variable names
156-
variable-rgx=[a-z_][a-z0-9_]{2,30}$
157-
158-
# Naming hint for variable names
159-
variable-name-hint=[a-z_][a-z0-9_]{2,30}$
160-
161-
# Regular expression matching correct constant names
162-
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
163-
164-
# Naming hint for constant names
165-
const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
166-
167-
# Regular expression matching correct attribute names
168-
attr-rgx=[a-z_][a-z0-9_]{2,30}$
169-
170-
# Naming hint for attribute names
171-
attr-name-hint=[a-z_][a-z0-9_]{2,30}$
172-
173-
# Regular expression matching correct argument names
174-
argument-rgx=[a-z_][a-z0-9_]{2,30}$
175-
176-
# Naming hint for argument names
177-
argument-name-hint=[a-z_][a-z0-9_]{2,30}$
178-
179-
# Regular expression matching correct class attribute names
180-
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
181-
182-
# Naming hint for class attribute names
183-
class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
184-
185-
# Regular expression matching correct inline iteration names
186-
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
187-
188-
# Naming hint for inline iteration names
189-
inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
190-
191-
# Regular expression matching correct class names
192-
class-rgx=[A-Z_][a-zA-Z0-9]+$
193-
194-
# Naming hint for class names
195-
class-name-hint=[A-Z_][a-zA-Z0-9]+$
196-
197-
# Regular expression matching correct module names
198-
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
199-
200-
# Naming hint for module names
201-
module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
202-
203-
# Regular expression matching correct method names
204-
method-rgx=[a-z_][a-z0-9_]{2,30}$
205-
206-
# Naming hint for method names
207-
method-name-hint=[a-z_][a-z0-9_]{2,30}$
208-
209-
# Regular expression which should only match function or class names that do
210-
# not require a docstring.
211-
no-docstring-rgx=_.*(__)?
212-
213-
# Minimum line length for functions/classes that require docstrings, shorter
214-
# ones are exempt.
215-
docstring-min-length=-1
216-
217-
218-
[FORMAT]
219-
220-
# Maximum number of characters on a single line.
221-
max-line-length=200
222-
223-
# Regexp for a line that is allowed to be longer than the limit.
224-
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
225-
226-
# Allow the body of an if to be on the same line as the test if there is no
227-
# else.
228-
single-line-if-stmt=no
229-
230-
# List of optional constructs for which whitespace checking is disabled
231-
no-space-check=trailing-comma,dict-separator
232-
233-
# Maximum number of lines in a module
234-
max-module-lines=1000
235-
236-
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
237-
# tab).
238-
indent-string=' '
239-
240-
# Number of spaces of indent required inside a hanging or continued line.
241-
indent-after-paren=4
242-
243-
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
244-
expected-line-ending-format=
245-
246-
247-
[TYPECHECK]
248-
249-
# Tells whether missing members accessed in mixin class should be ignored. A
250-
# mixin class is detected if its name ends with "mixin" (case insensitive).
251-
ignore-mixin-members=yes
252-
253-
# List of module names for which member attributes should not be checked
254-
# (useful for modules/projects where namespaces are manipulated during runtime
255-
# and thus existing member attributes cannot be deduced by static analysis
256-
ignored-modules=
257-
258-
# List of classes names for which member attributes should not be checked
259-
# (useful for classes with attributes dynamically set).
260-
ignored-classes=SQLObject
261-
262-
# List of members which are set dynamically and missed by pylint inference
263-
# system, and so shouldn't trigger E0201 when accessed. Python regular
264-
# expressions are accepted.
265-
generated-members=REQUEST,acl_users,aq_parent
266-
267-
268-
[SPELLING]
269-
270-
# Spelling dictionary name. Available dictionaries: none. To make it working
271-
# install python-enchant package.
272-
spelling-dict=
273-
274-
# List of comma separated words that should not be checked.
275-
spelling-ignore-words=
276-
277-
# A path to a file that contains private dictionary; one word per line.
278-
spelling-private-dict-file=
279-
280-
# Tells whether to store unknown words to indicated private dictionary in
281-
# --spelling-private-dict-file option instead of raising a message.
282-
spelling-store-unknown-words=no
283-
284-
285-
[LOGGING]
286-
287-
# Logging modules to check that the string format arguments are in logging
288-
# function parameter format
289-
logging-modules=logging
290-
291-
[IMPORTS]
292-
293-
# Deprecated modules which should not be used, separated by a comma
294-
deprecated-modules=regsub,TERMIOS,Bastion,rexec
295-
296-
# Create a graph of every (i.e. internal and external) dependencies in the
297-
# given file (report RP0402 must not be disabled)
298-
import-graph=
299-
300-
# Create a graph of external dependencies in the given file (report RP0402 must
301-
# not be disabled)
302-
ext-import-graph=
303-
304-
# Create a graph of internal dependencies in the given file (report RP0402 must
305-
# not be disabled)
306-
int-import-graph=
307-
308-
309-
[CLASSES]
310-
311-
# List of method names used to declare (i.e. assign) instance attributes.
312-
defining-attr-methods=__init__,__new__,setUp
313-
314-
# List of valid names for the first argument in a class method.
315-
valid-classmethod-first-arg=cls
316-
317-
# List of valid names for the first argument in a metaclass class method.
318-
valid-metaclass-classmethod-first-arg=mcs
319-
320-
# List of member names, which should be excluded from the protected access
321-
# warning.
322-
exclude-protected=_asdict,_fields,_replace,_source,_make
323-
324-
325-
[DESIGN]
326-
327-
# Maximum number of arguments for function / method
328-
max-args=8
329-
330-
# Argument names that match this expression will be ignored. Default to name
331-
# with leading underscore
332-
ignored-argument-names=_.*
333-
334-
# Maximum number of locals for function / method body
335-
max-locals=20
336-
337-
# Maximum number of return / yield for function / method body
338-
max-returns=8
339-
340-
# Maximum number of branch for function / method body
341-
max-branches=40
342-
343-
# Maximum number of statements in function / method body
344-
max-statements=100
345-
346-
# Maximum number of parents for a class (see R0901).
347-
max-parents=7
348-
349-
# Maximum number of attributes for a class (see R0902).
350-
max-attributes=30
351-
352-
# Minimum number of public methods for a class (see R0903).
353-
min-public-methods=0
354-
355-
# Maximum number of public methods for a class (see R0904).
356-
max-public-methods=20
357-
358-
359-
[EXCEPTIONS]
360-
361-
# Exceptions that will emit a warning when being caught. Defaults to
362-
# "Exception"
363-
overgeneral-exceptions=Exception

0 commit comments

Comments
 (0)