-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.cfg
68 lines (61 loc) · 1.6 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
[tool:pytest]
# Ignore warnings such as DeprecationWarning and pytest.PytestUnknownMarkWarning
filterwarnings = ignore::pytest.PytestWarning
# Configure the junit_family option explicitly:
junit_family = legacy
[flake8]
docstring-convention=numpy
max-line-length = 79
max-local-variables = 9
exclude =
.git
.
ignore =
# No docstring for module / package level
D100, D104,
RST303, RST304, DAR103, DAR201, DAR203,
# too short name: short names should be used for comprehension
WPS111,
# Should break before operators
W504,
# f-Strings are way faster than other methods
WPS305,
# Allow multiple assignment for os.path.split*
WPS414,
# Magic numbers can exist in algorithms
WPS432,
per-file-ignores =
*__init__.py: f401
tests/*test_*.py:
S101,
# too long name: is better to have long but meaningful test names
WPS118,
# missing docstring: tests should be short and their name should be descriptive enough
D101, D102, D103
# shadowing: pytest fixture works this way
WPS442,
# Allow number with a lot of zeros
WPS339,
# Allow repeated use of string constants
WPS226,
pytest-parametrize-names-type = csv
[darglint]
docstring_style=numpy
ignore=DAR101, DAR301
[isort]
line_length = 79
force_single_line = true
force_grid_wrap = 0
atomic = true
include_trailing_comma = true
lines_after_imports = 2
lines_between_types = 1
multi_line_output = 3
use_parentheses = true
not_skip = "__init__.py"
skip_glob = ["*/setup.py"]
filter_files = true
[mypy]
ignore_missing_imports = true
ignore_missing_stubs = true
follow-imports = silent