-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathsetup.cfg
More file actions
executable file
·123 lines (109 loc) · 2.79 KB
/
setup.cfg
File metadata and controls
executable file
·123 lines (109 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[mypy]
ignore_missing_imports = True
[flake8]
max-line-length = 100
max-complexity = 10
ignore =
# Missing trailing comma (handled by sjfmt)
C812
# No whitespace after paren open "("
E201
# No whitespace before paren ")"
E202
# Whitespace before ":"
E203
# Multiple spaces before operator
E221
# Multiple spaces after operand
E222
# Missing whitespace after ','
E231
# Multiple spaces after ':'
E241
# Spaces around keyword/parameter equals
E251
# Multiple spaces before keyword
E272
# Line too long (B950 is used instead)
E501
# Line break before binary op
W503
# Line break after binary op
W504
# Missing docstring in public module
D100
# Missing docstring in public class
D101
# Missing docstring in public method
D102
# Missing docstring in public function
D103
# Missing docstring in public package
D104
# Missing docstring in magic method
D105
# Missing docstring on __init__
D107
# No blank lines allowed after function docstring
D202
# First line should end in a period
D400
# First line should be in imperative mood
D401
select = A,AAA,D,C,E,F,W,H,B,D212,D404,D405,D406,B901,B950
exclude =
.git
__pycache__
.eggs/
dist/
.mypy_cache
[tool:pylint]
score = no
reports = no
# pylint may spam the same message multiple times if jobs > 1
jobs = 2
# Set the output format. Available formats are text, parseable, colorized,
# msvs (visual studio) and html. You can also give a reporter class, eg
# mypackage.mymodule.MyReporterClass.
output-format = colorized
# Maximum number of locals for function / method body
max-locals = 20
# Maximum number of arguments for function / method
max-args = 8
good-names = logger,i,ex
# These are packages that are implemented as c extensions and
# which pylint cannot do introspection on.
extension-pkg-whitelist = numpy,pandas,lxml,PIL,sklearn,pyblake2
notes=TODO,FIXME,XXX,SLOW,BUG
# similarities/duplicaition checker
min-similarity-lines=4
ignore-comments=yes
ignore-docstrings=yes
ignore-imports=yes
ignored-argument-names=args|kwargs
# https://pylint.pycqa.org/en/stable/technical_reference/features.html
disable =
bad-continuation,
bad-whitespace,
duplicate-code,
line-too-long,
logging-not-lazy,
logging-fstring-interpolation,
logging-format-interpolation,
no-else-return,
no-else-raise,
too-few-public-methods,
missing-docstring,
missing-module-docstring,
missing-class-docstring,
missing-function-docstring,
ungrouped-imports,
consider-using-f-string,
generated-members =
# members of typing.NamedTuple
"(_replace|_asdict|_fields)",
[tool:pytest]
minversion = 6.0
testpaths =
tests/integration_tests
tests/unit_tests