Skip to content

Commit 26a6312

Browse files
Add missing files for pytest plugin setup
1 parent 2d70b6c commit 26a6312

File tree

4 files changed

+435
-0
lines changed

4 files changed

+435
-0
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
__pycache__
2+
.cache
3+
.DS_Store
4+
.eggs
5+
.idea
6+
.pytest_cache
7+
.tox
8+
*.egg-info/
9+
*.pyc
10+
build
11+
dist
12+
Pipfile*

.pylintrc

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

0 commit comments

Comments
 (0)