-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.cfg
68 lines (60 loc) · 1.61 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
63
64
65
66
67
68
[flake8]
enable-extensions = G
exclude = .git, .venv
extend-ignore =
; 'id' is a python builtin, consider renaming the class attribute
A003,
; line break before binary operator
W503,
max-complexity = 10
max-line-length = 88
per-file-ignores =
flake8_pytest_style/visitors/*.py:N802
tests/*.py:S101
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_incomplete_defs = False
disallow_untyped_defs = False
[isort]
balanced_wrapping = True
default_section = THIRDPARTY
include_trailing_comma = True
known_first_party = flake8_pytest_style, tests
line_length = 88
multi_line_output = 3
[pylint]
good-names = i,j,k,e,x,_,pk,id
max-args = 5
max-attributes = 10
max-bool-expr = 5
max-branches = 10
max-locals = 8
max-module-lines = 500
max-nested-blocks = 3
max-public-methods = 10
max-returns = 5
max-statements = 25
output-format = colorized
disable =
C0103, ; Constant name "api" doesn't conform to UPPER_CASE naming style (invalid-name)
C0111, ; Missing module docstring (missing-docstring)
E0213, ; Method should have "self" as first argument (no-self-argument) - N805 for flake8
R0801, ; Similar lines in 2 files (duplicate-code)
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 = 90