-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.cfg
62 lines (54 loc) · 1.5 KB
/
setup.cfg
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
[flake8]
enable-extensions = G
exclude = .git, .venv
ignore =
A003 ; 'id' is a python builtin, consider renaming the class attribute
W503 ; line break before binary operator
max-complexity = 8
max-line-length = 100
show-source = true
[mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
ignore_missing_imports = True
no_implicit_optional = true
[mypy-tests.*]
disallow_untyped_defs = false
[isort]
balanced_wrapping = true
default_section = THIRDPARTY
include_trailing_comma=True
known_first_party = src, tests
line_length = 79
multi_line_output = 3
not_skip = __init__.py
[pylint]
good-names=i,j,k,e,x,_,pk,id
max-args=5
max-attributes=10
max-bool-expr=5
max-module-lines=200
max-nested-blocks=2
max-public-methods=5
max-returns=5
max-statements=20
output-format = colorized
disable=
C0103, ; Constant name "api" doesn't conform to UPPER_CASE naming style (invalid-name)
C0111, ; Missing module docstring (missing-docstring)
C0330, ; Wrong hanging indentation before block (add 4 spaces)
E0213, ; Method should have "self" as first argument (no-self-argument) - N805 for flake8
R0201, ; Method could be a function (no-self-use)
R0901, ; Too many ancestors (m/n) (too-many-ancestors)
R0903, ; Too few public methods (m/n) (too-few-public-methods)
ignored-classes=
contextlib.closing,
[coverage:run]
omit = tests/*,**/__main__.py
branch = True
[coverage:report]
show_missing = True
skip_covered = True
fail_under = 0