Skip to content

Commit d3307df

Browse files
committed
Add PyLint config file
This .pylintrc file contains a number of settings for PyLint that make sense to me given Dragonfly's overall code style.
1 parent b5d5276 commit d3307df

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.pylintrc

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[MASTER]
2+
3+
# Add files or directories matching the regex patterns to the blacklist. The
4+
# regex matches against base names, not paths.
5+
ignore-patterns=_test_*.py
6+
7+
# Use multiple processes to speed up Pylint.
8+
jobs=4
9+
10+
[MESSAGES CONTROL]
11+
12+
# Disable unwanted warnings with the given id(s) using a comma-separated
13+
# list.
14+
disable=invalid-name,bare-except,broad-except,bad-whitespace,unused-import,multiple-statements,missing-docstring,empty-docstring,useless-object-inheritance,no-else-return,len-as-condition
15+
16+
[DESIGN]
17+
18+
# Maximum number of arguments for function / method
19+
max-args=7
20+
21+
# Minimum number of public methods for a class (see R0903).
22+
min-public-methods=0
23+
24+
# Maximum number of public methods for a class (see R0904).
25+
max-public-methods=20
26+
27+
[CLASSES]
28+
29+
# List of method names used to declare (i.e. assign) instance attributes.
30+
# Action classes define some instance attributes in initialize().
31+
defining-attr-methods=__init__,__new__,setUp,initialize

0 commit comments

Comments
 (0)