Skip to content

Commit 100af62

Browse files
committed
Added pylint config file.
1 parent 80a3146 commit 100af62

File tree

1 file changed

+236
-0
lines changed

1 file changed

+236
-0
lines changed

.pylintrc

+236
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,236 @@
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.
11+
profile=no
12+
13+
# Add <file or directory> to the black list. It should be a base name, not a
14+
# path. You may set this option multiple times.
15+
ignore=CVS
16+
17+
# Pickle collected data for later comparisons.
18+
persistent=yes
19+
20+
# List of plugins (as comma separated values of python modules names) to load,
21+
# usually to register additional checkers.
22+
load-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.
30+
#enable=
31+
32+
# Disable the message, report, category or checker with the given id(s). You
33+
# can either give multiple identifier separated by comma (,) or put this option
34+
# multiple time.
35+
disable=C0103
36+
37+
38+
[REPORTS]
39+
40+
# Set the output format. Available formats are text, parseable, colorized, msvs
41+
# (visual studio) and html
42+
output-format=parseable
43+
44+
# Include message's id in output
45+
include-ids=yes
46+
47+
# Put messages in a separate file for each module / package specified on the
48+
# command line instead of printing them on stdout. Reports (if any) will be
49+
# written in a file name "pylint_global.[txt|html]".
50+
files-output=no
51+
52+
# Tells whether to display a full report or only the messages
53+
reports=yes
54+
55+
# Python expression which should return a note less than 10 (10 is the highest
56+
# note). You have access to the variables errors warning, statement which
57+
# respectively contain the number of errors / warnings messages and the total
58+
# number of statements analyzed. This is used by the global evaluation report
59+
# (R0004).
60+
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
61+
62+
# Add a comment according to your evaluation note. This is used by the global
63+
# evaluation report (R0004).
64+
comment=no
65+
66+
67+
[TYPECHECK]
68+
69+
# Tells whether missing members accessed in mixin class should be ignored. A
70+
# mixin class is detected if its name ends with "mixin" (case insensitive).
71+
ignore-mixin-members=yes
72+
73+
# List of classes names for which member attributes should not be checked
74+
# (useful for classes with attributes dynamically set).
75+
ignored-classes=SQLObject
76+
77+
# When zope mode is activated, add a predefined set of Zope acquired attributes
78+
# to generated-members.
79+
zope=no
80+
81+
# List of members which are set dynamically and missed by pylint inference
82+
# system, and so shouldn't trigger E0201 when accessed.
83+
generated-members=REQUEST,acl_users,aq_parent
84+
85+
86+
[MISCELLANEOUS]
87+
88+
# List of note tags to take in consideration, separated by a comma.
89+
notes=FIXME,XXX,TODO
90+
91+
92+
[FORMAT]
93+
94+
# Maximum number of characters on a single line.
95+
max-line-length=80
96+
97+
# Maximum number of lines in a module
98+
max-module-lines=1000
99+
100+
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
101+
# tab).
102+
indent-string=' '
103+
104+
105+
[BASIC]
106+
107+
# Required attributes for module, separated by a comma
108+
required-attributes=
109+
110+
# List of builtins function names that should not be used, separated by a comma
111+
bad-functions=map,filter,apply,input
112+
113+
# Regular expression which should only match correct module names
114+
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
115+
116+
# Regular expression which should only match correct module level names
117+
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
118+
119+
# Regular expression which should only match correct class names
120+
class-rgx=[A-Z_][a-zA-Z0-9]+$
121+
122+
# Regular expression which should only match correct function names
123+
function-rgx=[a-z_][a-z0-9_]{2,30}$
124+
125+
# Regular expression which should only match correct method names
126+
method-rgx=[a-z_][a-z0-9_]{2,30}$
127+
128+
# Regular expression which should only match correct instance attribute names
129+
attr-rgx=[a-z_][a-z0-9_]{2,30}$
130+
131+
# Regular expression which should only match correct argument names
132+
argument-rgx=[a-z_][a-z0-9_]{2,30}$
133+
134+
# Regular expression which should only match correct variable names
135+
variable-rgx=[a-z_][a-z0-9_]{2,30}$
136+
137+
# Regular expression which should only match correct list comprehension /
138+
# generator expression variable names
139+
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
140+
141+
# Good variable names which should always be accepted, separated by a comma
142+
good-names=i,j,k,ex,Run,_
143+
144+
# Bad variable names which should always be refused, separated by a comma
145+
bad-names=foo,bar,baz,toto,tutu,tata
146+
147+
# Regular expression which should only match functions or classes name which do
148+
# not require a docstring
149+
no-docstring-rgx=__.*__
150+
151+
152+
[VARIABLES]
153+
154+
# Tells whether we should check for unused import in __init__ files.
155+
init-import=no
156+
157+
# A regular expression matching names used for dummy variables (i.e. not used).
158+
dummy-variables-rgx=_|dummy
159+
160+
# List of additional names supposed to be defined in builtins. Remember that
161+
# you should avoid to define new builtins when possible.
162+
additional-builtins=
163+
164+
165+
[SIMILARITIES]
166+
167+
# Minimum lines number of a similarity.
168+
min-similarity-lines=4
169+
170+
# Ignore comments when computing similarities.
171+
ignore-comments=yes
172+
173+
# Ignore docstrings when computing similarities.
174+
ignore-docstrings=yes
175+
176+
177+
[DESIGN]
178+
179+
# Maximum number of arguments for function / method
180+
max-args=5
181+
182+
# Argument names that match this expression will be ignored. Default to name
183+
# with leading underscore
184+
ignored-argument-names=_.*
185+
186+
# Maximum number of locals for function / method body
187+
max-locals=15
188+
189+
# Maximum number of return / yield for function / method body
190+
max-returns=6
191+
192+
# Maximum number of branch for function / method body
193+
max-branchs=12
194+
195+
# Maximum number of statements in function / method body
196+
max-statements=50
197+
198+
# Maximum number of parents for a class (see R0901).
199+
max-parents=7
200+
201+
# Maximum number of attributes for a class (see R0902).
202+
max-attributes=7
203+
204+
# Minimum number of public methods for a class (see R0903).
205+
min-public-methods=2
206+
207+
# Maximum number of public methods for a class (see R0904).
208+
max-public-methods=20
209+
210+
211+
[IMPORTS]
212+
213+
# Deprecated modules which should not be used, separated by a comma
214+
deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
215+
216+
# Create a graph of every (i.e. internal and external) dependencies in the
217+
# given file (report RP0402 must not be disabled)
218+
import-graph=
219+
220+
# Create a graph of external dependencies in the given file (report RP0402 must
221+
# not be disabled)
222+
ext-import-graph=
223+
224+
# Create a graph of internal dependencies in the given file (report RP0402 must
225+
# not be disabled)
226+
int-import-graph=
227+
228+
229+
[CLASSES]
230+
231+
# List of interface methods to ignore, separated by a comma. This is used for
232+
# instance to not check methods defines in Zope's Interface base class.
233+
ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
234+
235+
# List of method names used to declare (i.e. assign) instance attributes.
236+
defining-attr-methods=__init__,__new__,setUp

0 commit comments

Comments
 (0)