-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
126 lines (118 loc) · 2.44 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
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
124
125
126
[aliases]
test=pytest
[isort]
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
line_length=79
known_future_library=annotations
known_standard_library = collections, dataclasses, functools, numbers, typing
known_third_party = numpy, scipy, mpmath, pytest
[mypy]
python_version = 3.7
platform = linux
show_column_numbers = False
ignore_missing_imports = True
follow_imports = normal
check_untyped_defs = True
disallow_untyped_defs = False
disallow_incomplete_defs = False
strict_optional = True
follow_imports_for_stubs = True
[mypy-func_analysis]
disallow_untyped_defs = True
disallow_incomplete_defs = True
[flake8]
enable-extensions = G
ignore =
# Black formatter makes these obsolete.
# C81 referrs to comma-formatting (flake8-commas)
# Z317 refers to multiline-argument formatting (wemake-python-styleguide)
W503, E203, D202, C81, Z317
# multiline conditionals (wemake-python-styleguide)
Z465
# Magic numbers (wemake-python-styleguide)
Z432
# Nested functions (wemake-python-styleguide)
Z430
# Logic in __init__ methods (wemake-python-styleguide)
Z412
# Forbids f-strings (wemake-python-styleguide)
Z305
# isort makes these obsolete (hacking)
H306, H301,X100
max-line-length = 79
inline-quotes = double
exclude =
.git
__pycache__
build
dist
ignore
per_file_ignores =
# Tests can use assert statements.
func_analysis/tests/*py: S101
# Single-sourcing __version__
func_analysis/__init__.py: Z410
# setup.py can use nested import
setup.py: Z435
max-complexity = 4
max-line-complexity = 16
# wemake-python-styleguide tweaks
max-methods = 9
[pydocstyle]
add_select = D404, D212
add_ignore = D202, D104
convention = numpy
[coverage:run]
include =
func_analysis/*.py
func_analysis/**/*.py
[coverage:report]
fail_under = 99
show_missing = true
[tool:pytest]
norecursedirs =
.vscode
.mypy_cache
.git
__pycache__
numpy-stubs
build
builds
dist
.tox
.vim
.pytest_cache
venv
ignore
*.egg-info
filterwarnings =
ignore::DeprecationWarning:pandas
ignore::DeprecationWarning:isort
flake8-ignore =
E203
D202
D104
W503
X100
Z432
Z430
Z412
Z305
H3
C81
docstyle_add_ignore =
D202
D104
docstyle_add_select =
D404
D212
docstyle_convention = numpy
addopts =
-s
--cov
--ignore=.eggs
--cov-report xml:coverage.xml
--cov-report term