Skip to content

Commit 27154b4

Browse files
author
bcronin
committed
Automated commit
1 parent d7809a9 commit 27154b4

File tree

7 files changed

+917
-0
lines changed

7 files changed

+917
-0
lines changed

pylintrc

Lines changed: 389 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,389 @@
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 files or directories to the blacklist. They should be base names, not
14+
# paths.
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+
# Deprecated. It was used to include message's id in output. Use --msg-template
25+
# instead.
26+
include-ids=no
27+
28+
# Deprecated. It was used to include symbolic ids of messages in output. Use
29+
# --msg-template instead.
30+
symbols=no
31+
32+
# Use multiple processes to speed up Pylint.
33+
jobs=1
34+
35+
# Allow loading of arbitrary C extensions. Extensions are imported into the
36+
# active Python interpreter and may run arbitrary code.
37+
unsafe-load-any-extension=no
38+
39+
# A comma-separated list of package or module names from where C extensions may
40+
# be loaded. Extensions are loading into the active Python interpreter and may
41+
# run arbitrary code
42+
extension-pkg-whitelist=
43+
44+
# Allow optimization of some AST trees. This will activate a peephole AST
45+
# optimizer, which will apply various small optimizations. For instance, it can
46+
# be used to obtain the result of joining multiple strings with the addition
47+
# operator. Joining a lot of strings can lead to a maximum recursion error in
48+
# Pylint and this flag can prevent that. It has one side effect, the resulting
49+
# AST will be different than the one from reality.
50+
optimize-ast=no
51+
52+
53+
[MESSAGES CONTROL]
54+
55+
# Only show warnings with the listed confidence levels. Leave empty to show
56+
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
57+
confidence=
58+
59+
# Enable the message, report, category or checker with the given id(s). You can
60+
# either give multiple identifier separated by comma (,) or put this option
61+
# multiple time. See also the "--disable" option for examples.
62+
#enable=
63+
64+
# Disable the message, report, category or checker with the given id(s). You
65+
# can either give multiple identifiers separated by comma (,) or put this
66+
# option multiple times (only on the command line, not in the configuration
67+
# file where it should appear only once).You can also use "--disable=all" to
68+
# disable everything first and then reenable specific checks. For example, if
69+
# you want to run only the similarities checker, you can use "--disable=all
70+
# --enable=similarities". If you want to run only the classes checker, but have
71+
# no Warning level messages displayed, use"--disable=all --enable=classes
72+
# --disable=W"
73+
disable=protected-access,too-many-instance-attributes,too-few-public-methods,too-many-arguments,redefined-outer-name,line-too-long,W0141
74+
75+
[REPORTS]
76+
77+
# Set the output format. Available formats are text, parseable, colorized, msvs
78+
# (visual studio) and html. You can also give a reporter class, eg
79+
# mypackage.mymodule.MyReporterClass.
80+
output-format=text
81+
82+
# Put messages in a separate file for each module / package specified on the
83+
# command line instead of printing them on stdout. Reports (if any) will be
84+
# written in a file name "pylint_global.[txt|html]".
85+
files-output=no
86+
87+
# Tells whether to display a full report or only the messages
88+
reports=yes
89+
90+
# Python expression which should return a note less than 10 (10 is the highest
91+
# note). You have access to the variables errors warning, statement which
92+
# respectively contain the number of errors / warnings messages and the total
93+
# number of statements analyzed. This is used by the global evaluation report
94+
# (RP0004).
95+
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
96+
97+
# Add a comment according to your evaluation note. This is used by the global
98+
# evaluation report (RP0004).
99+
comment=no
100+
101+
# Template used to display messages. This is a python new-style format string
102+
# used to format the message information. See doc for all details
103+
#msg-template=
104+
105+
106+
[BASIC]
107+
108+
# Required attributes for module, separated by a comma
109+
required-attributes=
110+
111+
# List of builtins function names that should not be used, separated by a comma
112+
bad-functions=map,filter,input
113+
114+
# Good variable names which should always be accepted, separated by a comma
115+
good-names=i,j,k,ex,Run,_
116+
117+
# Bad variable names which should always be refused, separated by a comma
118+
bad-names=foo,bar,baz,toto,tutu,tata
119+
120+
# Colon-delimited sets of names that determine each other's naming style when
121+
# the name regexes allow several styles.
122+
name-group=
123+
124+
# Include a hint for the correct naming format with invalid-name
125+
include-naming-hint=no
126+
127+
# Regular expression matching correct function names
128+
function-rgx=[a-z_][a-z0-9_]{2,30}$
129+
130+
# Naming hint for function names
131+
function-name-hint=[a-z_][a-z0-9_]{2,30}$
132+
133+
# Regular expression matching correct variable names
134+
variable-rgx=[a-z_][a-z0-9_]{2,30}$
135+
136+
# Naming hint for variable names
137+
variable-name-hint=[a-z_][a-z0-9_]{2,30}$
138+
139+
# Regular expression matching correct constant names
140+
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
141+
142+
# Naming hint for constant names
143+
const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
144+
145+
# Regular expression matching correct attribute names
146+
attr-rgx=[a-z_][a-z0-9_]{2,30}$
147+
148+
# Naming hint for attribute names
149+
attr-name-hint=[a-z_][a-z0-9_]{2,30}$
150+
151+
# Regular expression matching correct argument names
152+
argument-rgx=[a-z_][a-z0-9_]{2,30}$
153+
154+
# Naming hint for argument names
155+
argument-name-hint=[a-z_][a-z0-9_]{2,30}$
156+
157+
# Regular expression matching correct class attribute names
158+
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
159+
160+
# Naming hint for class attribute names
161+
class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
162+
163+
# Regular expression matching correct inline iteration names
164+
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
165+
166+
# Naming hint for inline iteration names
167+
inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
168+
169+
# Regular expression matching correct class names
170+
class-rgx=[A-Z_][a-zA-Z0-9]+$
171+
172+
# Naming hint for class names
173+
class-name-hint=[A-Z_][a-zA-Z0-9]+$
174+
175+
# Regular expression matching correct module names
176+
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
177+
178+
# Naming hint for module names
179+
module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
180+
181+
# Regular expression matching correct method names
182+
method-rgx=[a-z_][a-z0-9_]{2,30}$
183+
184+
# Naming hint for method names
185+
method-name-hint=[a-z_][a-z0-9_]{2,30}$
186+
187+
# Regular expression which should only match function or class names that do
188+
# not require a docstring.
189+
no-docstring-rgx=__.*__
190+
191+
# Minimum line length for functions/classes that require docstrings, shorter
192+
# ones are exempt.
193+
docstring-min-length=-1
194+
195+
196+
[FORMAT]
197+
198+
# Maximum number of characters on a single line.
199+
max-line-length=80
200+
201+
# Regexp for a line that is allowed to be longer than the limit.
202+
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
203+
204+
# Allow the body of an if to be on the same line as the test if there is no
205+
# else.
206+
single-line-if-stmt=no
207+
208+
# List of optional constructs for which whitespace checking is disabled
209+
no-space-check=trailing-comma,dict-separator
210+
211+
# Maximum number of lines in a module
212+
max-module-lines=1000
213+
214+
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
215+
# tab).
216+
indent-string=' '
217+
218+
# Number of spaces of indent required inside a hanging or continued line.
219+
indent-after-paren=4
220+
221+
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
222+
expected-line-ending-format=
223+
224+
225+
[LOGGING]
226+
227+
# Logging modules to check that the string format arguments are in logging
228+
# function parameter format
229+
logging-modules=logging
230+
231+
232+
[MISCELLANEOUS]
233+
234+
# List of note tags to take in consideration, separated by a comma.
235+
notes=FIXME,XXX,TODO
236+
237+
238+
[SIMILARITIES]
239+
240+
# Minimum lines number of a similarity.
241+
min-similarity-lines=4
242+
243+
# Ignore comments when computing similarities.
244+
ignore-comments=yes
245+
246+
# Ignore docstrings when computing similarities.
247+
ignore-docstrings=yes
248+
249+
# Ignore imports when computing similarities.
250+
ignore-imports=no
251+
252+
253+
[SPELLING]
254+
255+
# Spelling dictionary name. Available dictionaries: none. To make it working
256+
# install python-enchant package.
257+
spelling-dict=
258+
259+
# List of comma separated words that should not be checked.
260+
spelling-ignore-words=
261+
262+
# A path to a file that contains private dictionary; one word per line.
263+
spelling-private-dict-file=
264+
265+
# Tells whether to store unknown words to indicated private dictionary in
266+
# --spelling-private-dict-file option instead of raising a message.
267+
spelling-store-unknown-words=no
268+
269+
270+
[TYPECHECK]
271+
272+
# Tells whether missing members accessed in mixin class should be ignored. A
273+
# mixin class is detected if its name ends with "mixin" (case insensitive).
274+
ignore-mixin-members=yes
275+
276+
# List of module names for which member attributes should not be checked
277+
# (useful for modules/projects where namespaces are manipulated during runtime
278+
# and thus existing member attributes cannot be deduced by static analysis
279+
ignored-modules=
280+
281+
# List of classes names for which member attributes should not be checked
282+
# (useful for classes with attributes dynamically set).
283+
ignored-classes=SQLObject
284+
285+
# When zope mode is activated, add a predefined set of Zope acquired attributes
286+
# to generated-members.
287+
zope=no
288+
289+
# List of members which are set dynamically and missed by pylint inference
290+
# system, and so shouldn't trigger E0201 when accessed. Python regular
291+
# expressions are accepted.
292+
generated-members=REQUEST,acl_users,aq_parent
293+
294+
295+
[VARIABLES]
296+
297+
# Tells whether we should check for unused import in __init__ files.
298+
init-import=no
299+
300+
# A regular expression matching the name of dummy variables (i.e. expectedly
301+
# not used).
302+
dummy-variables-rgx=_$|dummy
303+
304+
# List of additional names supposed to be defined in builtins. Remember that
305+
# you should avoid to define new builtins when possible.
306+
additional-builtins=
307+
308+
# List of strings which can identify a callback function by name. A callback
309+
# name must start or end with one of those strings.
310+
callbacks=cb_,_cb
311+
312+
313+
[CLASSES]
314+
315+
# List of interface methods to ignore, separated by a comma. This is used for
316+
# instance to not check methods defines in Zope's Interface base class.
317+
ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
318+
319+
# List of method names used to declare (i.e. assign) instance attributes.
320+
defining-attr-methods=__init__,__new__,setUp
321+
322+
# List of valid names for the first argument in a class method.
323+
valid-classmethod-first-arg=cls
324+
325+
# List of valid names for the first argument in a metaclass class method.
326+
valid-metaclass-classmethod-first-arg=mcs
327+
328+
# List of member names, which should be excluded from the protected access
329+
# warning.
330+
exclude-protected=_asdict,_fields,_replace,_source,_make
331+
332+
333+
[DESIGN]
334+
335+
# Maximum number of arguments for function / method
336+
max-args=5
337+
338+
# Argument names that match this expression will be ignored. Default to name
339+
# with leading underscore
340+
ignored-argument-names=_.*
341+
342+
# Maximum number of locals for function / method body
343+
max-locals=15
344+
345+
# Maximum number of return / yield for function / method body
346+
max-returns=6
347+
348+
# Maximum number of branch for function / method body
349+
max-branches=12
350+
351+
# Maximum number of statements in function / method body
352+
max-statements=50
353+
354+
# Maximum number of parents for a class (see R0901).
355+
max-parents=7
356+
357+
# Maximum number of attributes for a class (see R0902).
358+
max-attributes=7
359+
360+
# Minimum number of public methods for a class (see R0903).
361+
min-public-methods=2
362+
363+
# Maximum number of public methods for a class (see R0904).
364+
max-public-methods=20
365+
366+
367+
[IMPORTS]
368+
369+
# Deprecated modules which should not be used, separated by a comma
370+
deprecated-modules=regsub,TERMIOS,Bastion,rexec
371+
372+
# Create a graph of every (i.e. internal and external) dependencies in the
373+
# given file (report RP0402 must not be disabled)
374+
import-graph=
375+
376+
# Create a graph of external dependencies in the given file (report RP0402 must
377+
# not be disabled)
378+
ext-import-graph=
379+
380+
# Create a graph of internal dependencies in the given file (report RP0402 must
381+
# not be disabled)
382+
int-import-graph=
383+
384+
385+
[EXCEPTIONS]
386+
387+
# Exceptions that will emit a warning when being caught. Defaults to
388+
# "Exception"
389+
overgeneral-exceptions=Exception

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bdist_wheel]
2+
universal=1

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)