Skip to content

Commit 951d491

Browse files
committed
Merge branch 'release/1.0.0'
2 parents eb4c4de + 7efb92f commit 951d491

105 files changed

Lines changed: 5006 additions & 4025 deletions

File tree

Some content is hidden

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

.pylintrc

Lines changed: 340 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
1+
# PyLint config for PyPhi code.
2+
#
3+
# Based on the PyLint config for Google's apitools:
4+
# https://github.com/google/apitools/blob/master/default.pylintrc
5+
16
[MASTER]
27

8+
# Specify a configuration file.
9+
# DEFAULT: rcfile=
10+
11+
# Python code to execute, usually for sys.path manipulation such as
12+
# pygtk.require().
13+
# DEFAULT: init-hook=
14+
15+
# Profiled execution.
16+
# DEFAULT: profile=no
17+
18+
# Add files or directories to the blacklist. They should be base names, not
19+
# paths.
20+
# DEFAULT: ignore=CVS
21+
# NOTE: This path must be relative due to the use of
22+
# os.walk in astroid.modutils.get_module_files.
323
ignore=
424
__pycache__,
525
__pyphi_cache__,
@@ -12,8 +32,325 @@ ignore=
1232
htmlcov,
1333
benchmarks,
1434

35+
# Pickle collected data for later comparisons.
36+
# DEFAULT: persistent=yes
37+
38+
# List of plugins (as comma separated values of python modules names) to load,
39+
# usually to register additional checkers.
40+
# DEFAULT: load-plugins=
41+
42+
# DEPRECATED
43+
# DEFAULT: include-ids=no
44+
45+
# DEPRECATED
46+
# DEFAULT: symbols=no
47+
48+
1549
[MESSAGES CONTROL]
1650

17-
disable=
18-
no-member,
19-
invalid-name
51+
# TODO: remove cyclic-import.
52+
disable =
53+
cyclic-import,
54+
fixme,
55+
import-error,
56+
locally-disabled,
57+
locally-enabled,
58+
no-member,
59+
no-name-in-module,
60+
no-self-use,
61+
super-on-old-class,
62+
too-many-arguments,
63+
too-many-function-args,
64+
65+
66+
[REPORTS]
67+
68+
# Set the output format. Available formats are text, parseable, colorized, msvs
69+
# (visual studio) and html. You can also give a reporter class, eg
70+
# mypackage.mymodule.MyReporterClass.
71+
# DEFAULT: output-format=text
72+
73+
# Put messages in a separate file for each module / package specified on the
74+
# command line instead of printing them on stdout. Reports (if any) will be
75+
# written in a file name "pylint_global.[txt|html]".
76+
# DEFAULT: files-output=no
77+
78+
# Tells whether to display a full report or only the messages
79+
# DEFAULT: reports=yes
80+
# RATIONALE: run from Travis / tox, and don't need / want to parse output.
81+
reports=no
82+
83+
# Python expression which should return a note less than 10 (10 is the highest
84+
# note). You have access to the variables errors warning, statement which
85+
# respectively contain the number of errors / warnings messages and the total
86+
# number of statements analyzed. This is used by the global evaluation report
87+
# (RP0004).
88+
# DEFAULT: evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
89+
90+
# Add a comment according to your evaluation note. This is used by the global
91+
# evaluation report (RP0004).
92+
# DEFAULT: comment=no
93+
94+
# Template used to display messages. This is a python new-style format string
95+
# used to format the message information. See doc for all details
96+
#msg-template=
97+
98+
99+
[SIMILARITIES]
100+
101+
# Minimum lines number of a similarity.
102+
# DEFAULT: min-similarity-lines=4
103+
min-similarity-lines=15
104+
105+
# Ignore comments when computing similarities.
106+
# DEFAULT: ignore-comments=yes
107+
108+
# Ignore docstrings when computing similarities.
109+
# DEFAULT: ignore-docstrings=yes
110+
111+
# Ignore imports when computing similarities.
112+
# DEFAULT: ignore-imports=no
113+
ignore-imports=yes
114+
115+
116+
[VARIABLES]
117+
118+
# Tells whether we should check for unused import in __init__ files.
119+
# DEFAULT: init-import=no
120+
121+
# A regular expression matching the name of dummy variables (i.e. expectedly
122+
# not used).
123+
dummy-variables-rgx=^\*{0,2}(_$|unused_|dummy_)
124+
125+
126+
# List of additional names supposed to be defined in builtins. Remember that
127+
# you should avoid to define new builtins when possible.
128+
# DEFAULT: additional-builtins=
129+
130+
131+
[LOGGING]
132+
133+
# Logging modules to check that the string format arguments are in logging
134+
# function parameter format
135+
# DEFAULT: logging-modules=logging
136+
137+
138+
[FORMAT]
139+
140+
# Maximum number of characters on a single line.
141+
# DEFAULT: max-line-length=79
142+
143+
# Regexp for a line that is allowed to be longer than the limit.
144+
# DEFAULT: ignore-long-lines=^\s*(# )?<?https?://\S+>?$
145+
146+
# Allow the body of an if to be on the same line as the test if there is no
147+
# else.
148+
# DEFAULT: single-line-if-stmt=no
149+
150+
# List of optional constructs for which whitespace checking is disabled
151+
# DEFAULT: no-space-check=trailing-comma,dict-separator
152+
# RATIONALE: pylint ignores whitespace checks around the
153+
# constructs "dict-separator" (cases like {1:2}) and
154+
# "trailing-comma" (cases like {1: 2, }).
155+
# By setting "no-space-check" to empty whitespace checks will be
156+
# enforced around both constructs.
157+
no-space-check =
158+
159+
# Maximum number of lines in a module
160+
# DEFAULT: max-module-lines=1000
161+
max-module-lines=1500
162+
163+
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
164+
# tab).
165+
# DEFAULT: indent-string=' '
166+
167+
# Number of spaces of indent required inside a hanging or continued line.
168+
# DEFAULT: indent-after-paren=4
169+
170+
171+
[MISCELLANEOUS]
172+
173+
# List of note tags to take in consideration, separated by a comma.
174+
# DEFAULT: notes=FIXME,XXX,TODO
175+
176+
177+
[BASIC]
178+
179+
# Regular expression which should only match function or class names that do
180+
# not require a docstring.
181+
# DEFAULT: no-docstring-rgx=__.*__
182+
no-docstring-rgx=(__.*__|main)
183+
184+
# Minimum line length for functions/classes that require docstrings, shorter
185+
# ones are exempt.
186+
# DEFAULT: docstring-min-length=-1
187+
docstring-min-length=10
188+
189+
# Regular expression which should only match correct module names. The
190+
# leading underscore is sanctioned for private modules by Google's style
191+
# guide.
192+
module-rgx=^(_?[a-z][a-z0-9_]*)|__init__$
193+
194+
# Regular expression matching correct constant names
195+
# DEFAULT: const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
196+
const-rgx=^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$
197+
198+
# Regular expression matching correct class attribute names
199+
# DEFAULT: class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
200+
class-attribute-rgx=^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$
201+
202+
# Regular expression matching correct class names
203+
# DEFAULT: class-rgx=[A-Z_][a-zA-Z0-9]+$
204+
class-rgx=^_?[A-Z][a-zA-Z0-9]*$
205+
206+
# Regular expression which should only match correct function names.
207+
# 'camel_case' and 'snake_case' group names are used for consistency of naming
208+
# styles across functions and methods.
209+
function-rgx=^(?:(?P<camel_case>_?[A-Z][a-zA-Z0-9]*)|(?P<snake_case>_?[a-z][a-z0-9_]*))$
210+
211+
# Regular expression which should only match correct method names.
212+
# 'camel_case' and 'snake_case' group names are used for consistency of naming
213+
# styles across functions and methods. 'exempt' indicates a name which is
214+
# consistent with all naming styles.
215+
method-rgx=^(?:(?P<exempt>__[a-z0-9_]+__|next)|(?P<camel_case>_{0,2}[A-Z][a-zA-Z0-9]*)|(?P<snake_case>_{0,2}[a-z][a-z0-9_]*))$
216+
217+
# Regular expression matching correct attribute names
218+
# DEFAULT: attr-rgx=[a-z_][a-z0-9_]{2,30}$
219+
attr-rgx=^_{0,2}[a-z][a-z0-9_]*$
220+
221+
# Regular expression matching correct argument names
222+
# DEFAULT: argument-rgx=[a-z_][a-z0-9_]{2,30}$
223+
argument-rgx=^[a-z][a-z0-9_]*$
224+
225+
# Regular expression matching correct variable names
226+
# DEFAULT: variable-rgx=[a-z_][a-z0-9_]{2,30}$
227+
variable-rgx=^[a-z][a-z0-9_]*$
228+
229+
# Regular expression matching correct inline iteration names
230+
# DEFAULT: inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
231+
inlinevar-rgx=^[a-z][a-z0-9_]*$
232+
233+
# Good variable names which should always be accepted, separated by a comma
234+
# DEFAULT: good-names=i,j,k,ex,Run,_
235+
good-names=main,_
236+
237+
# Bad variable names which should always be refused, separated by a comma
238+
# DEFAULT: bad-names=foo,bar,baz,toto,tutu,tata
239+
bad-names=
240+
241+
# List of builtins function names that should not be used, separated by a comma
242+
# <http://go/python-style#Deprecated_Language_Features>
243+
bad-functions=input,apply,reduce
244+
245+
246+
[TYPECHECK]
247+
248+
# Tells whether missing members accessed in mixin class should be ignored. A
249+
# mixin class is detected if its name ends with "mixin" (case insensitive).
250+
# DEFAULT: ignore-mixin-members=yes
251+
252+
# List of module names for which member attributes should not be checked
253+
# (useful for modules/projects where namespaces are manipulated during runtime
254+
# and thus existing member attributes cannot be deduced by static analysis
255+
# DEFAULT: ignored-modules=
256+
257+
# List of classes names for which member attributes should not be checked
258+
# (useful for classes with attributes dynamically set).
259+
# DEFAULT: ignored-classes=SQLObject
260+
261+
# When zope mode is activated, add a predefined set of Zope acquired attributes
262+
# to generated-members.
263+
# DEFAULT: zope=no
264+
265+
# List of members which are set dynamically and missed by pylint inference
266+
# system, and so shouldn't trigger E0201 when accessed. Python regular
267+
# expressions are accepted.
268+
# DEFAULT: generated-members=REQUEST,acl_users,aq_parent
269+
270+
271+
[IMPORTS]
272+
273+
# Deprecated modules which should not be used, separated by a comma
274+
# DEFAULT: deprecated-modules=regsub,TERMIOS,Bastion,rexec
275+
276+
# Create a graph of every (i.e. internal and external) dependencies in the
277+
# given file (report RP0402 must not be disabled)
278+
# DEFAULT: import-graph=
279+
280+
# Create a graph of external dependencies in the given file (report RP0402 must
281+
# not be disabled)
282+
# DEFAULT: ext-import-graph=
283+
284+
# Create a graph of internal dependencies in the given file (report RP0402 must
285+
# not be disabled)
286+
# DEFAULT: int-import-graph=
287+
288+
289+
[CLASSES]
290+
291+
# List of interface methods to ignore, separated by a comma. This is used for
292+
# instance to not check methods defines in Zope's Interface base class.
293+
# DEFAULT: ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
294+
295+
# List of method names used to declare (i.e. assign) instance attributes.
296+
# DEFAULT: defining-attr-methods=__init__,__new__,setUp
297+
298+
# List of valid names for the first argument in a class method.
299+
# DEFAULT: valid-classmethod-first-arg=cls
300+
301+
# List of valid names for the first argument in a metaclass class method.
302+
# DEFAULT: valid-metaclass-classmethod-first-arg=mcs
303+
304+
305+
[DESIGN]
306+
307+
# Maximum number of arguments for function / method
308+
# DEFAULT: max-args=5
309+
# RATIONALE: API-mapping
310+
max-args = 14
311+
312+
# Argument names that match this expression will be ignored. Default to name
313+
# with leading underscore
314+
# DEFAULT: ignored-argument-names=_.*
315+
316+
# Maximum number of locals for function / method body
317+
# DEFAULT: max-locals=15
318+
max-locals=24
319+
320+
# Maximum number of return / yield for function / method body
321+
# DEFAULT: max-returns=6
322+
max-returns=9
323+
324+
# Maximum number of branch for function / method body
325+
# DEFAULT: max-branches=12
326+
max-branches=21
327+
328+
# Maximum number of statements in function / method body
329+
# DEFAULT: max-statements=50
330+
331+
# Maximum number of parents for a class (see R0901).
332+
# DEFAULT: max-parents=7
333+
334+
# Maximum number of attributes for a class (see R0902).
335+
# DEFAULT: max-attributes=7
336+
# RATIONALE: API mapping
337+
max-attributes=19
338+
339+
# Minimum number of public methods for a class (see R0903).
340+
# DEFAULT: min-public-methods=2
341+
# RATIONALE: context mgrs may have *no* public methods
342+
min-public-methods=0
343+
344+
# Maximum number of public methods for a class (see R0904).
345+
# DEFAULT: max-public-methods=20
346+
# RATIONALE: API mapping
347+
max-public-methods=40
348+
349+
[ELIF]
350+
max-nested-blocks=6
351+
352+
[EXCEPTIONS]
353+
354+
# Exceptions that will emit a warning when being caught. Defaults to
355+
# "Exception"
356+
# DEFAULT: overgeneral-exceptions=Exception

0 commit comments

Comments
 (0)