Skip to content

Commit fbd6669

Browse files
committed
Initial commit
Signed-off-by: Kevin Conway <[email protected]>
0 parents  commit fbd6669

22 files changed

+1364
-0
lines changed

.gitignore

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
5+
# C extensions
6+
*.so
7+
8+
# Distribution / packaging
9+
.Python
10+
env/
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
lib/
17+
lib64/
18+
parts/
19+
sdist/
20+
var/
21+
*.egg-info/
22+
.installed.cfg
23+
*.egg
24+
25+
# PyInstaller
26+
# Usually these files are written by a python script from a template
27+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
28+
*.manifest
29+
*.spec
30+
31+
# Installer logs
32+
pip-log.txt
33+
pip-delete-this-directory.txt
34+
35+
# Unit test / coverage reports
36+
htmlcov/
37+
.tox/
38+
.coverage
39+
.cache
40+
nosetests.xml
41+
coverage.xml
42+
43+
# Translations
44+
*.mo
45+
*.pot
46+
47+
# Django stuff:
48+
*.log
49+
50+
# Sphinx documentation
51+
docs/_build/
52+
53+
# PyBuilder
54+
target/

.pylintrc

+335
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,335 @@
1+
[MASTER]
2+
3+
# Pickle collected data for later comparisons.
4+
persistent=no
5+
6+
# List of plugins (as comma separated values of python modules names) to load,
7+
# usually to register additional checkers.
8+
load-plugins=
9+
10+
# Use multiple processes to speed up Pylint.
11+
jobs=1
12+
13+
[REPORTS]
14+
15+
# Set the output format. Available formats are text, parseable, colorized, msvs
16+
# (visual studio) and html. You can also give a reporter class, eg
17+
# mypackage.mymodule.MyReporterClass.
18+
output-format=colorized
19+
20+
# Tells whether to display a full report or only the messages
21+
reports=no
22+
23+
# Template used to display messages. This is a python new-style format string
24+
# used to format the message information. See doc for all details
25+
#msg-template=
26+
27+
28+
[MESSAGES CONTROL]
29+
30+
# Only show warnings with the listed confidence levels. Leave empty to show
31+
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
32+
confidence=
33+
34+
# Enable the message, report, category or checker with the given id(s). You can
35+
# either give multiple identifier separated by comma (,) or put this option
36+
# multiple time. See also the "--disable" option for examples.
37+
#enable=
38+
39+
# Disable the message, report, category or checker with the given id(s). You
40+
# can either give multiple identifiers separated by comma (,) or put this
41+
# option multiple times (only on the command line, not in the configuration
42+
# file where it should appear only once).You can also use "--disable=all" to
43+
# disable everything first and then reenable specific checks. For example, if
44+
# you want to run only the similarities checker, you can use "--disable=all
45+
# --enable=similarities". If you want to run only the classes checker, but have
46+
# no Warning level messages displayed, use"--disable=all --enable=classes
47+
# --disable=W"
48+
49+
# Disable F0401 to hide issues with Pylint importing modules.
50+
# Disable R0901 to hide warnings caused by use of mixins.
51+
disable=F0401,R0901
52+
53+
54+
[MISCELLANEOUS]
55+
56+
# List of note tags to take in consideration, separated by a comma.
57+
notes=FIXME,XXX,TODO,NOTE
58+
59+
60+
[LOGGING]
61+
62+
# Logging modules to check that the string format arguments are in logging
63+
# function parameter format
64+
logging-modules=logging
65+
66+
67+
[VARIABLES]
68+
69+
# Tells whether we should check for unused import in __init__ files.
70+
init-import=no
71+
72+
# A regular expression matching the name of dummy variables (i.e. expectedly
73+
# not used).
74+
dummy-variables-rgx=_$|dummy
75+
76+
# List of additional names supposed to be defined in builtins. Remember that
77+
# you should avoid to define new builtins when possible.
78+
additional-builtins=
79+
80+
# List of strings which can identify a callback function by name. A callback
81+
# name must start or end with one of those strings.
82+
callbacks=cb_,_cb
83+
84+
85+
[SIMILARITIES]
86+
87+
# Minimum lines number of a similarity.
88+
min-similarity-lines=4
89+
90+
# Ignore comments when computing similarities.
91+
ignore-comments=yes
92+
93+
# Ignore docstrings when computing similarities.
94+
ignore-docstrings=yes
95+
96+
# Ignore imports when computing similarities.
97+
ignore-imports=yes
98+
99+
100+
[TYPECHECK]
101+
102+
# Tells whether missing members accessed in mixin class should be ignored. A
103+
# mixin class is detected if its name ends with "mixin" (case insensitive).
104+
ignore-mixin-members=yes
105+
106+
# List of module names for which member attributes should not be checked
107+
# (useful for modules/projects where namespaces are manipulated during runtime
108+
# and thus existing member attributes cannot be deduced by static analysis
109+
ignored-modules=
110+
111+
# List of classes names for which member attributes should not be checked
112+
# (useful for classes with attributes dynamically set).
113+
ignored-classes=
114+
115+
# List of members which are set dynamically and missed by pylint inference
116+
# system, and so shouldn't trigger E0201 when accessed. Python regular
117+
# expressions are accepted.
118+
generated-members=
119+
120+
121+
[SPELLING]
122+
123+
# Spelling dictionary name. Available dictionaries: en_US. To make it working
124+
# install python-enchant package.
125+
spelling-dict=en_US
126+
127+
# List of comma separated words that should not be checked.
128+
spelling-ignore-words=config,namespace,iterable,json,ini,regex,namespaces,str,JSON,INI,init,behaviour,setattr,getattr,classmethod,instancemethod,dict,bool,metadata,iteritems,args,kwargs,cls,iter,subclass,subclasses,api,API,unicode,_namespaces,NAMESPACES,_NAMESPACES,proxied,hasattr,prepend,prepended,os,env,cli,CLI,arg,args,argv,url,URL,uninstall,mixin,Mixin,pip,subshell,csh,sh,symlink,symlinked,symlinking,pypi,cmd
129+
130+
# A path to a file that contains private dictionary; one word per line.
131+
spelling-private-dict-file=
132+
133+
# Tells whether to store unknown words to indicated private dictionary in
134+
# --spelling-private-dict-file option instead of raising a message.
135+
spelling-store-unknown-words=no
136+
137+
138+
[BASIC]
139+
140+
# Required attributes for module, separated by a comma
141+
required-attributes=
142+
143+
# List of builtins function names that should not be used, separated by a comma
144+
bad-functions=
145+
146+
# Good variable names which should always be accepted, separated by a comma
147+
good-names=_
148+
149+
# Bad variable names which should always be refused, separated by a comma
150+
bad-names=foo,bar,baz,toto,tutu,tata,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z
151+
152+
# Colon-delimited sets of names that determine each other's naming style when
153+
# the name regexes allow several styles.
154+
name-group=
155+
156+
# Include a hint for the correct naming format with invalid-name
157+
include-naming-hint=no
158+
159+
# Regular expression matching correct class attribute names
160+
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
161+
162+
# Naming hint for class attribute names
163+
class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
164+
165+
# Regular expression matching correct module names
166+
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
167+
168+
# Naming hint for module names
169+
module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
170+
171+
# Regular expression matching correct class names
172+
# Adding zip due to pylint confusion.
173+
class-rgx=(([A-Z_][a-zA-Z0-9]+)|(zip))$
174+
175+
# Naming hint for class names
176+
class-name-hint=[A-Z_][a-zA-Z0-9]+$
177+
178+
# Regular expression matching correct attribute names
179+
attr-rgx=[a-z_][a-z0-9_]{2,30}$
180+
181+
# Naming hint for attribute names
182+
attr-name-hint=[a-z_][a-z0-9_]{2,30}$
183+
184+
# Regular expression matching correct constant names
185+
# Adding some names used in the pycompat file.
186+
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__)|(zip)|(long)|(unicode)|(range)|(basestring))$
187+
188+
# Naming hint for constant names
189+
const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
190+
191+
# Regular expression matching correct function names
192+
function-rgx=[a-z_][a-z0-9_]{2,30}$
193+
194+
# Naming hint for function names
195+
function-name-hint=[a-z_][a-z0-9_]{2,30}$
196+
197+
# Regular expression matching correct variable names
198+
variable-rgx=[a-z_][a-z0-9_]{2,30}$
199+
200+
# Naming hint for variable names
201+
variable-name-hint=[a-z_][a-z0-9_]{2,30}$
202+
203+
# Regular expression matching correct inline iteration names
204+
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
205+
206+
# Naming hint for inline iteration names
207+
inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
208+
209+
# Regular expression matching correct method names
210+
method-rgx=[a-z_][a-z0-9_]{2,30}$
211+
212+
# Naming hint for method names
213+
method-name-hint=[a-z_][a-z0-9_]{2,30}$
214+
215+
# Regular expression matching correct argument names
216+
argument-rgx=[a-z_][a-z0-9_]{2,30}$
217+
218+
# Naming hint for argument names
219+
argument-name-hint=[a-z_][a-z0-9_]{2,30}$
220+
221+
# Regular expression which should only match function or class names that do
222+
# not require a docstring.
223+
no-docstring-rgx=__.*__
224+
225+
# Minimum line length for functions/classes that require docstrings, shorter
226+
# ones are exempt.
227+
docstring-min-length=-1
228+
229+
230+
[FORMAT]
231+
232+
# Maximum number of characters on a single line.
233+
max-line-length=80
234+
235+
# Regexp for a line that is allowed to be longer than the limit.
236+
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
237+
238+
# Allow the body of an if to be on the same line as the test if there is no
239+
# else.
240+
single-line-if-stmt=no
241+
242+
# List of optional constructs for which whitespace checking is disabled
243+
no-space-check=trailing-comma,dict-separator
244+
245+
# Maximum number of lines in a module
246+
max-module-lines=1000
247+
248+
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
249+
# tab).
250+
indent-string=' '
251+
252+
# Number of spaces of indent required inside a hanging or continued line.
253+
indent-after-paren=4
254+
255+
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
256+
expected-line-ending-format=
257+
258+
259+
[CLASSES]
260+
261+
# List of interface methods to ignore, separated by a comma. This is used for
262+
# instance to not check methods defines in Zope's Interface base class.
263+
ignore-iface-methods=
264+
265+
# List of method names used to declare (i.e. assign) instance attributes.
266+
defining-attr-methods=__init__,__new__
267+
268+
# List of valid names for the first argument in a class method.
269+
valid-classmethod-first-arg=cls
270+
271+
# List of valid names for the first argument in a metaclass class method.
272+
valid-metaclass-classmethod-first-arg=mcs
273+
274+
# List of member names, which should be excluded from the protected access
275+
# warning.
276+
exclude-protected=_asdict,_fields,_replace,_source,_make
277+
278+
279+
[IMPORTS]
280+
281+
# Deprecated modules which should not be used, separated by a comma
282+
deprecated-modules=stringprep,optparse
283+
284+
# Create a graph of every (i.e. internal and external) dependencies in the
285+
# given file (report RP0402 must not be disabled)
286+
import-graph=
287+
288+
# Create a graph of external dependencies in the given file (report RP0402 must
289+
# not be disabled)
290+
ext-import-graph=
291+
292+
# Create a graph of internal dependencies in the given file (report RP0402 must
293+
# not be disabled)
294+
int-import-graph=
295+
296+
297+
[DESIGN]
298+
299+
# Maximum number of arguments for function / method
300+
max-args=5
301+
302+
# Argument names that match this expression will be ignored. Default to name
303+
# with leading underscore
304+
ignored-argument-names=_.*
305+
306+
# Maximum number of locals for function / method body
307+
max-locals=15
308+
309+
# Maximum number of return / yield for function / method body
310+
max-returns=6
311+
312+
# Maximum number of branch for function / method body
313+
max-branches=12
314+
315+
# Maximum number of statements in function / method body
316+
max-statements=50
317+
318+
# Maximum number of parents for a class (see R0901).
319+
max-parents=7
320+
321+
# Maximum number of attributes for a class (see R0902).
322+
max-attributes=7
323+
324+
# Minimum number of public methods for a class (see R0903).
325+
min-public-methods=0
326+
327+
# Maximum number of public methods for a class (see R0904).
328+
max-public-methods=20
329+
330+
331+
[EXCEPTIONS]
332+
333+
# Exceptions that will emit a warning when being caught. Defaults to
334+
# "Exception"
335+
overgeneral-exceptions=Exception

0 commit comments

Comments
 (0)