-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
110 lines (96 loc) · 2.64 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
[aliases]
test = pytest
[codespell]
ignore-words = tools/dictionary
# Following words should be ignored inline instead of globally, once that
# is supported by codespell: github.com/codespell-project/codespell/issues/1212
ignore-words-list = ba
[coverage:report]
exclude_lines =
pragma: no cover
raise NotImplementedError
omit = **/conftest.py
[coverage:xml]
output = cobertura-coverage.xml
[coverage:run]
omit = */test_*.py
*/tests/*.py
*/conftest.py
*/deprecated/*.py
[flake8]
application-import-names = psipy
count = True
doctests = True
exclude = .env
env
.venv
__pycache__
.eggs
.ipynb_checkpoints
exit_zero = False
ignore = E203 # https://github.com/PyCQA/pycodestyle/issues/373
E266 # allow ## at beginning of lines
W503 # line break before binary operator
C901 # too complex
import-order-style = edited
max-complexity = 18
max-line-length = 88
pretty = True
show_error_codes = True
statistics = True
[isort]
#profile = black
balanced_wrapping = True
ensure_newline_before_comments = True
force_grid_wrap = 0
include_trailing_comma = True
line_length = 88
multi_line_output = 9
order_by_type = True
use_parentheses = True
[mypy]
# warn_return_any = True # TODO: This should maybe be used.
# no_implicit_optional = True # TODO: This should be used.
# check_untyped_defs = True # TODO: This should be used.
# implicit_reexport = False # TODO: This should be used.
# warn_no_return = True # TODO: This should be used.
allow_redefinition = True
ignore_missing_imports = True
pretty = True
show_column_numbers = True
show_error_codes = True
show_error_context = True
strict_equality = True
warn_redundant_casts = True
warn_unreachable = True
warn_unused_configs = True
warn_unused_ignores = True
[tool:pytest]
addopts = --cov=psipy
--cov-config=setup.cfg
--cov-report=term-missing
--cov-report=xml:dist/tests/cobertura-coverage.xml
--cov-report=html:dist/tests/coverage_html
--doctest-modules
--durations=0
--junitxml=dist/tests/junit.xml
--pyargs psipy/
--strict
-rw
doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL
faulthandler_timeout = 60
filterwarnings = ignore::DeprecationWarning
junit_family = xunit1
markers =
slow: marks tests as slow (deselect with '-m "not slow"')
norecursedirs = bin
docs
examples
gallery
tools
*.egg-info
.eggs
.ipynb_checkpoints
deprecated
data
python_files = test_*.py