-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
84 lines (75 loc) · 2.47 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[coverage:report]
ignore_errors = True
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
if self\.debug
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
[ ]*pass[ ]*\#?.*
[ ]*\.\.\.[ ]*\#?.*
[coverage:run]
omit = .venv/*,tests/*,docs/*,setup.py,.tox/*
[tool:pytest]
doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ELLIPSIS NUMBER
testpaths = src tests
[flake8]
# W503 ignore line break occurred before a binary operator
# E203 ignore because it is not PEP 8 compliant https://github.com/ambv/black/issues/315
# E501 and B950 disable default 'line-too-long' warning, see https://github.com/ambv/black#line-length
# WPS210 ignore too many local variables
# WPS213 ignore too many expressions
# C81* ignore missing trailing comma as it is stricter than black
# WPS305 no f strings allowed
# WPS337 ignore multiline condition violations
# WPS348 ignore lines starting with a dot as black does this
ignore = W503,E203,E266,E501,B950,C81,WPS210,WPS213,WPS305,WPS337,WPS348
min-name-length = 3
max-try-body-length = 2
# emit a warning if the McCabe complexity of a function
# is higher than the value
max-complexity = 18
per-file-ignores = __init__.py:F401
# select the error codes you wish Flake8 to report
# see http://flake8.pycqa.org/en/2.5.5/warnings.html
select = B,C,E,F,N400,N8,W,T4
exclude = .venv, build, docs
[isort]
# Wemake has not yet been update to use isort 5
# If wemake is enabled - isort fails
combine_as_imports = True
force_sort_within_sections = True
lines_after_imports = 2
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length=79
[mypy]
check_untyped_defs = True
disallow_incomplete_defs = True
disallow_untyped_calls = True
disallow_untyped_decorators = True
disallow_untyped_defs = True
explicit_package_bases = True
ignore_missing_imports = False
mypy_path = src
namespace_packages = True
no_implicit_optional = False
show_error_codes = True
show_error_context = True
warn_redundant_casts = True
warn_return_any = True
warn_unreachable = True
warn_unused_configs = True
warn_unused_ignores = True
[mypy-pluggy.*,setuptools.*]
ignore_missing_imports = True