-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.cfg
51 lines (44 loc) · 1.06 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
# setup pytest, dependencies: pytest pytest-cov pytest-sugar pytest-rerunfailures
[tool:pytest]
addopts =
--strict-markers
--doctest-modules
--reruns 5
--reruns-delay 1
--cov-report=term-missing
--cov=src/normi tests/
# setup flake8
[flake8]
format = wemake
show-source = True
statistics = True
doctests = True
max-complexity = 10
count = True
# flake8-spellchecker
dictionaries = en_US, python, technical
spellcheck-targets = comments
# rst-docstrings
rst-roles = class, func, ref
rst-directives = todo
# exclude some errors
ignore =
S101, C101, N, DAR401, DAR402, W504,
WPS306, WPS352, WPS120, WPS111, WPS305, WPS326, WPS115
exclude = .git, src/*/__pycache__, docs, build, dist
per-file-ignores =
src/*/__init__.py:F401, F403, D104, D400, E501
setup.py:D100
tests/*.py:WPS, DAR101, DAR201
# setup flake8-isort
[isort]
include_trailing_comma = true
multi_line_output = 3
line_length = 79
skip = src/*/__init__.py
# setup darglint
[darglint]
strictness = short
docstring_style = numpy
# ignore private function
ignore_regex=^_(.*)