Skip to content

Commit bd884b1

Browse files
author
mb
committed
Basic tree
1 parent b0c786e commit bd884b1

File tree

10 files changed

+503
-56
lines changed

10 files changed

+503
-56
lines changed

.gitignore

+5-56
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,6 @@
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-
.eggs/
17-
lib/
18-
lib64/
19-
parts/
20-
sdist/
21-
var/
1+
.tox
2+
*.pyc
223
*.egg-info/
23-
.installed.cfg
24-
*.egg
25-
26-
# PyInstaller
27-
# Usually these files are written by a python script from a template
28-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
29-
*.manifest
30-
*.spec
31-
32-
# Installer logs
33-
pip-log.txt
34-
pip-delete-this-directory.txt
35-
36-
# Unit test / coverage reports
37-
htmlcov/
38-
.tox/
39-
.coverage
40-
.coverage.*
41-
.cache
42-
nosetests.xml
43-
coverage.xml
44-
*,cover
45-
46-
# Translations
47-
*.mo
48-
*.pot
49-
50-
# Django stuff:
51-
*.log
52-
53-
# Sphinx documentation
54-
docs/_build/
55-
56-
# PyBuilder
57-
target/
4+
.project
5+
.pydevproject
6+
.settings/

.isort.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[settings]
2+
line_length=79

.pylintrc

+306
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,306 @@
1+
# Copyright (c) 2015, OLogN Technologies AG. All rights reserved.
2+
#
3+
# Redistribution and use of this file in source and compiled
4+
# forms, with or without modification, are permitted
5+
# provided that the following conditions are met:
6+
# * Redistributions in source form must retain the above copyright
7+
# notice, this list of conditions and the following disclaimer.
8+
# * Redistributions in compiled form must reproduce the above copyright
9+
# notice, this list of conditions and the following disclaimer in the
10+
# documentation and/or other materials provided with the distribution.
11+
# * Neither the name of the OLogN Technologies AG nor the names of its
12+
# contributors may be used to endorse or promote products derived from
13+
# this software without specific prior written permission.
14+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17+
# ARE DISCLAIMED. IN NO EVENT SHALL OLogN Technologies AG BE LIABLE FOR ANY
18+
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19+
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21+
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22+
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23+
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
24+
# DAMAGE
25+
26+
[MASTER]
27+
28+
# Specify a configuration file.
29+
#rcfile=
30+
31+
# Python code to execute, usually for sys.path manipulation such as
32+
# pygtk.require().
33+
#init-hook=
34+
35+
# Profiled execution.
36+
profile=no
37+
38+
# Add files or directories to the blacklist. They should be base names, not
39+
# paths.
40+
ignore=CVS
41+
42+
# Pickle collected data for later comparisons.
43+
persistent=yes
44+
45+
# List of plugins (as comma separated values of python modules names) to load,
46+
# usually to register additional checkers.
47+
load-plugins=
48+
49+
50+
[MESSAGES CONTROL]
51+
52+
# Enable the message, report, category or checker with the given id(s). You can
53+
# either give multiple identifier separated by comma (,) or put this option
54+
# multiple time. See also the "--disable" option for examples.
55+
#enable=
56+
57+
# Disable the message, report, category or checker with the given id(s). You
58+
# can either give multiple identifiers separated by comma (,) or put this
59+
# option multiple times (only on the command line, not in the configuration
60+
# file where it should appear only once).You can also use "--disable=all" to
61+
# disable everything first and then reenable specific checks. For example, if
62+
# you want to run only the similarities checker, you can use "--disable=all
63+
# --enable=similarities". If you want to run only the classes checker, but have
64+
# no Warning level messages displayed, use"--disable=all --enable=classes
65+
# --disable=W"
66+
disable=I0011,R0801,R0401,R0903,R0904,R0913,R0922,C0103,C0111,C0302,W0142,W0232,W0511,W0702,W0703,E1101,E1103,E1120
67+
68+
69+
[REPORTS]
70+
71+
# Set the output format. Available formats are text, parseable, colorized, msvs
72+
# (visual studio) and html. You can also give a reporter class, eg
73+
# mypackage.mymodule.MyReporterClass.
74+
output-format=text
75+
76+
# Put messages in a separate file for each module / package specified on the
77+
# command line instead of printing them on stdout. Reports (if any) will be
78+
# written in a file name "pylint_global.[txt|html]".
79+
files-output=no
80+
81+
# Tells whether to display a full report or only the messages
82+
reports=yes
83+
84+
# Python expression which should return a note less than 10 (10 is the highest
85+
# note). You have access to the variables errors warning, statement which
86+
# respectively contain the number of errors / warnings messages and the total
87+
# number of statements analyzed. This is used by the global evaluation report
88+
# (RP0004).
89+
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
90+
91+
# Add a comment according to your evaluation note. This is used by the global
92+
# evaluation report (RP0004).
93+
comment=no
94+
95+
# Template used to display messages. This is a python new-style format string
96+
# used to format the message information. See doc for all details
97+
#msg-template=
98+
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}
99+
100+
101+
[BASIC]
102+
103+
# Required attributes for module, separated by a comma
104+
required-attributes=
105+
106+
# List of builtins function names that should not be used, separated by a comma
107+
bad-functions=map,filter,apply,input
108+
109+
# Regular expression which should only match correct module names
110+
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
111+
112+
# Regular expression which should only match correct module level names
113+
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
114+
115+
# Regular expression which should only match correct class names
116+
class-rgx=[A-Z_][a-zA-Z0-9]+$
117+
118+
# Regular expression which should only match correct function names
119+
function-rgx=[a-z_][a-z0-9_]{2,30}$
120+
121+
# Regular expression which should only match correct method names
122+
method-rgx=[a-z_][a-z0-9_]{2,30}$
123+
124+
# Regular expression which should only match correct instance attribute names
125+
attr-rgx=[a-z_][a-z0-9_]{2,30}$
126+
127+
# Regular expression which should only match correct argument names
128+
argument-rgx=[a-z_][a-z0-9_]{2,30}$
129+
130+
# Regular expression which should only match correct variable names
131+
variable-rgx=[a-z_][a-z0-9_]{2,30}$
132+
133+
# Regular expression which should only match correct attribute names in class
134+
# bodies
135+
class-attribute-rgx=([A-Za-z_][A-Za-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 function or class names that do
148+
# not require a docstring.
149+
no-docstring-rgx=__.*__
150+
151+
# Minimum line length for functions/classes that require docstrings, shorter
152+
# ones are exempt.
153+
docstring-min-length=-1
154+
155+
156+
[FORMAT]
157+
158+
# Maximum number of characters on a single line.
159+
max-line-length=80
160+
161+
# Regexp for a line that is allowed to be longer than the limit.
162+
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
163+
164+
# Allow the body of an if to be on the same line as the test if there is no
165+
# else.
166+
single-line-if-stmt=no
167+
168+
# List of optional constructs for which whitespace checking is disabled
169+
no-space-check=trailing-comma,dict-separator
170+
171+
# Maximum number of lines in a module
172+
max-module-lines=1000
173+
174+
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
175+
# tab).
176+
indent-string=' '
177+
178+
179+
[MISCELLANEOUS]
180+
181+
# List of note tags to take in consideration, separated by a comma.
182+
notes=FIXME,XXX,TODO
183+
184+
185+
[SIMILARITIES]
186+
187+
# Minimum lines number of a similarity.
188+
min-similarity-lines=4
189+
190+
# Ignore comments when computing similarities.
191+
ignore-comments=yes
192+
193+
# Ignore docstrings when computing similarities.
194+
ignore-docstrings=yes
195+
196+
# Ignore imports when computing similarities.
197+
ignore-imports=no
198+
199+
200+
[TYPECHECK]
201+
202+
# Tells whether missing members accessed in mixin class should be ignored. A
203+
# mixin class is detected if its name ends with "mixin" (case insensitive).
204+
ignore-mixin-members=yes
205+
206+
# List of classes names for which member attributes should not be checked
207+
# (useful for classes with attributes dynamically set).
208+
ignored-classes=SQLObject
209+
210+
# When zope mode is activated, add a predefined set of Zope acquired attributes
211+
# to generated-members.
212+
zope=no
213+
214+
# List of members which are set dynamically and missed by pylint inference
215+
# system, and so shouldn't trigger E0201 when accessed. Python regular
216+
# expressions are accepted.
217+
generated-members=REQUEST,acl_users,aq_parent
218+
219+
220+
[VARIABLES]
221+
222+
# Tells whether we should check for unused import in __init__ files.
223+
init-import=no
224+
225+
# A regular expression matching the beginning of the name of dummy variables
226+
# (i.e. not used).
227+
dummy-variables-rgx=_$|dummy
228+
229+
# List of additional names supposed to be defined in builtins. Remember that
230+
# you should avoid to define new builtins when possible.
231+
additional-builtins=
232+
233+
234+
[CLASSES]
235+
236+
# List of interface methods to ignore, separated by a comma. This is used for
237+
# instance to not check methods defines in Zope's Interface base class.
238+
ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
239+
240+
# List of method names used to declare (i.e. assign) instance attributes.
241+
defining-attr-methods=__init__,__new__,setUp
242+
243+
# List of valid names for the first argument in a class method.
244+
valid-classmethod-first-arg=cls
245+
246+
# List of valid names for the first argument in a metaclass class method.
247+
valid-metaclass-classmethod-first-arg=mcs
248+
249+
250+
[DESIGN]
251+
252+
# Maximum number of arguments for function / method
253+
max-args=5
254+
255+
# Argument names that match this expression will be ignored. Default to name
256+
# with leading underscore
257+
ignored-argument-names=_.*
258+
259+
# Maximum number of locals for function / method body
260+
max-locals=15
261+
262+
# Maximum number of return / yield for function / method body
263+
max-returns=6
264+
265+
# Maximum number of branch for function / method body
266+
max-branches=12
267+
268+
# Maximum number of statements in function / method body
269+
max-statements=50
270+
271+
# Maximum number of parents for a class (see R0901).
272+
max-parents=7
273+
274+
# Maximum number of attributes for a class (see R0902).
275+
max-attributes=7
276+
277+
# Minimum number of public methods for a class (see R0903).
278+
min-public-methods=2
279+
280+
# Maximum number of public methods for a class (see R0904).
281+
max-public-methods=20
282+
283+
284+
[IMPORTS]
285+
286+
# Deprecated modules which should not be used, separated by a comma
287+
deprecated-modules=regsub,TERMIOS,Bastion,rexec
288+
289+
# Create a graph of every (i.e. internal and external) dependencies in the
290+
# given file (report RP0402 must not be disabled)
291+
import-graph=
292+
293+
# Create a graph of external dependencies in the given file (report RP0402 must
294+
# not be disabled)
295+
ext-import-graph=
296+
297+
# Create a graph of internal dependencies in the given file (report RP0402 must
298+
# not be disabled)
299+
int-import-graph=
300+
301+
302+
[EXCEPTIONS]
303+
304+
# Exceptions that will emit a warning when being caught. Defaults to
305+
# "Exception"
306+
overgeneral-exceptions=Exception

0 commit comments

Comments
 (0)