Skip to content

Commit 3531555

Browse files
committed
Initial Commit
0 parents  commit 3531555

File tree

128 files changed

+9337
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+9337
-0
lines changed

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# See GITATTRIBUTES(5) (``man gitattributes``).
2+
# - ``diff=<language>`` declares that diff hunk headers and git-diff word diffs
3+
# (for ``git diff --word-diff`` and ``git diff --color-words``) should be
4+
# specially computed for the language grammar. This makes git-diff more
5+
# powerful and useful.
6+
*.py text eol=lf diff=python
7+
*.html text eol=lf diff=html
8+
*.txt text eol=lf
9+
*.rst text eol=lf
10+
*.in text eol=lf
11+
*.ini text eol=lf

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.idea
2+
*.pyc
3+
tokens.pk
4+
boxsdk.egg-info
5+
.tox
6+
*,cover

.pylintrc

Lines changed: 279 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,279 @@
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+
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. See also the "--disable" option for examples.
30+
#enable=
31+
32+
# Disable the message, report, category or checker with the given id(s). You
33+
# can either give multiple identifiers separated by comma (,) or put this
34+
# option multiple times (only on the command line, not in the configuration
35+
# file where it should appear only once).You can also use "--disable=all" to
36+
# disable everything first and then reenable specific checks. For example, if
37+
# you want to run only the similarities checker, you can use "--disable=all
38+
# --enable=similarities". If you want to run only the classes checker, but have
39+
# no Warning level messages displayed, use"--disable=all --enable=classes
40+
# --disable=W"
41+
42+
# C0111 => Missing docstring
43+
# W0108 => unnecessary lambda
44+
# W0142 => Used * or ** magic
45+
# R0401 => cyclic-import
46+
disable=I, C0111, W0108, W0142, R0921, R0922, W0232, R0401
47+
48+
49+
[REPORTS]
50+
51+
# Set the output format. Available formats are text, parseable, colorized, msvs
52+
# (visual studio) and html. You can also give a reporter class, eg
53+
# mypackage.mymodule.MyReporterClass.
54+
output-format=text
55+
56+
# Put messages in a separate file for each module / package specified on the
57+
# command line instead of printing them on stdout. Reports (if any) will be
58+
# written in a file name "pylint_global.[txt|html]".
59+
files-output=no
60+
61+
# Tells whether to display a full report or only the messages
62+
reports=no
63+
64+
# Python expression which should return a note less than 10 (10 is the highest
65+
# note). You have access to the variables errors warning, statement which
66+
# respectively contain the number of errors / warnings messages and the total
67+
# number of statements analyzed. This is used by the global evaluation report
68+
# (RP0004).
69+
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
70+
71+
# Add a comment according to your evaluation note. This is used by the global
72+
# evaluation report (RP0004).
73+
comment=no
74+
75+
# Template used to display messages. This is a python new-style format string
76+
# used to format the massage information. See doc for all details
77+
msg-template={module}:{line}:{column}: [{msg_id}({symbol}), {obj}] {msg}
78+
79+
80+
[BASIC]
81+
82+
# Required attributes for module, separated by a comma
83+
required-attributes=
84+
85+
# List of builtins function names that should not be used, separated by a comma
86+
bad-functions=map,filter,apply,input
87+
88+
# Regular expression which should only match correct module names
89+
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
90+
91+
# Regular expression which should only match correct module level names
92+
const-rgx=(([A-Z_][a-zA-Z0-9_]*)|(__.*__))$
93+
94+
# Regular expression which should only match correct class names
95+
class-rgx=[A-Z_][a-zA-Z0-9]+$
96+
97+
# Regular expression which should only match correct function names
98+
function-rgx=[a-z_][a-z0-9_]{2,}$
99+
100+
# Regular expression which should only match correct method names
101+
method-rgx=[a-z_][a-z0-9_]{2,}$
102+
103+
# Regular expression which should only match correct instance attribute names
104+
attr-rgx=[a-z_][a-z0-9_]{2,30}$
105+
106+
# Regular expression which should only match correct argument names
107+
argument-rgx=[a-z_][a-z0-9_]{2,40}$
108+
109+
# Regular expression which should only match correct variable names
110+
variable-rgx=[a-z_][a-z0-9_]{2,}$
111+
112+
# Regular expression which should only match correct attribute names in class
113+
# bodies
114+
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
115+
116+
# Regular expression which should only match correct list comprehension /
117+
# generator expression variable names
118+
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
119+
120+
# Good variable names which should always be accepted, separated by a comma
121+
good-names=i,j,k,ex,Run,_
122+
123+
# Bad variable names which should always be refused, separated by a comma
124+
bad-names=foo,bar,baz,toto,tutu,tata
125+
126+
# Regular expression which should only match function or class names that do
127+
# not require a docstring.
128+
no-docstring-rgx=__.*__
129+
130+
# Minimum line length for functions/classes that require docstrings, shorter
131+
# ones are exempt.
132+
docstring-min-length=-1
133+
134+
135+
[FORMAT]
136+
137+
# Maximum number of characters on a single line.
138+
max-line-length=150
139+
140+
# Regexp for a line that is allowed to be longer than the limit.
141+
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
142+
143+
# Maximum number of lines in a module
144+
max-module-lines=1000
145+
146+
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
147+
# tab).
148+
indent-string=' '
149+
150+
151+
[MISCELLANEOUS]
152+
153+
# List of note tags to take in consideration, separated by a comma.
154+
notes=TODO
155+
156+
157+
[SIMILARITIES]
158+
159+
# Minimum lines number of a similarity.
160+
min-similarity-lines=4
161+
162+
# Ignore comments when computing similarities.
163+
ignore-comments=yes
164+
165+
# Ignore docstrings when computing similarities.
166+
ignore-docstrings=yes
167+
168+
# Ignore imports when computing similarities.
169+
ignore-imports=yes
170+
171+
172+
[TYPECHECK]
173+
174+
# Tells whether missing members accessed in mixin class should be ignored. A
175+
# mixin class is detected if its name ends with "mixin" (case insensitive).
176+
ignore-mixin-members=yes
177+
178+
# List of classes names for which member attributes should not be checked
179+
# (useful for classes with attributes dynamically set).
180+
#ignored-classes=SQLObject
181+
ignored-classes=pytest, _pytest
182+
183+
# When zope mode is activated, add a predefined set of Zope acquired attributes
184+
# to generated-members.
185+
zope=no
186+
187+
# List of members which are set dynamically and missed by pylint inference
188+
# system, and so shouldn't trigger E0201 when accessed. Python regular
189+
# expressions are accepted.
190+
generated-members=REQUEST,acl_users,aq_parent
191+
192+
193+
[VARIABLES]
194+
195+
# Tells whether we should check for unused import in __init__ files.
196+
init-import=no
197+
198+
# A regular expression matching the beginning of the name of dummy variables
199+
# (i.e. not used).
200+
dummy-variables-rgx=_$|dummy
201+
202+
# List of additional names supposed to be defined in builtins. Remember that
203+
# you should avoid to define new builtins when possible.
204+
additional-builtins=
205+
206+
207+
[CLASSES]
208+
209+
# List of interface methods to ignore, separated by a comma. This is used for
210+
# instance to not check methods defines in Zope's Interface base class.
211+
ignore-iface-methods=
212+
213+
# List of method names used to declare (i.e. assign) instance attributes.
214+
defining-attr-methods=__init__,__new__,setUp
215+
216+
# List of valid names for the first argument in a class method.
217+
valid-classmethod-first-arg=cls
218+
219+
# List of valid names for the first argument in a metaclass class method.
220+
valid-metaclass-classmethod-first-arg=mcs
221+
222+
223+
[DESIGN]
224+
225+
# Maximum number of arguments for function / method
226+
max-args=15
227+
228+
# Argument names that match this expression will be ignored. Default to name
229+
# with leading underscore
230+
ignored-argument-names=_.*
231+
232+
# Maximum number of locals for function / method body
233+
max-locals=20
234+
235+
# Maximum number of return / yield for function / method body
236+
max-returns=6
237+
238+
# Maximum number of branch for function / method body
239+
max-branches=12
240+
241+
# Maximum number of statements in function / method body
242+
max-statements=50
243+
244+
# Maximum number of parents for a class (see R0901).
245+
max-parents=7
246+
247+
# Maximum number of attributes for a class (see R0902).
248+
max-attributes=15
249+
250+
# Minimum number of public methods for a class (see R0903).
251+
min-public-methods=0
252+
253+
# Maximum number of public methods for a class (see R0904).
254+
max-public-methods=100
255+
256+
257+
[IMPORTS]
258+
259+
# Deprecated modules which should not be used, separated by a comma
260+
deprecated-modules=
261+
262+
# Create a graph of every (i.e. internal and external) dependencies in the
263+
# given file (report RP0402 must not be disabled)
264+
import-graph=
265+
266+
# Create a graph of external dependencies in the given file (report RP0402 must
267+
# not be disabled)
268+
ext-import-graph=
269+
270+
# Create a graph of internal dependencies in the given file (report RP0402 must
271+
# not be disabled)
272+
int-import-graph=
273+
274+
275+
[EXCEPTIONS]
276+
277+
# Exceptions that will emit a warning when being caught. Defaults to
278+
# "Exception"
279+
overgeneral-exceptions=Exception

0 commit comments

Comments
 (0)