-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.cfg
114 lines (97 loc) · 1.85 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
[yapf]
based_on_style = pep8
######################
# Tool configuration #
######################
[mypy]
python_version = 3.10
warn_unused_configs = True
show_error_context = True
pretty = True
namespace_packages = True
check_untyped_defs = True
[flake8]
max-line-length = 120
[tool:pytest]
testpaths = test
addopts = --cov --strict-markers
xfail_strict = True
[coverage:run]
source = njab
branch = True
[coverage:report]
show_missing = True
skip_covered = True
[coverage:paths]
source =
src/njab
*/site-packages/njab
#########################
# Tox env configuration #
#########################
[tox:tox]
envlist = py39,py310,py311,py312
isolated_build = True
[testenv]
deps =
pytest
pytest-cov
commands =
pytest {posargs}
[testenv:typecheck]
deps =
mypy
pytest
types-termcolor
commands =
mypy --ignore-missing-imports {posargs:src test}
[testenv:format]
skip_install = True
deps =
yapf
toml
commands =
yapf --version
yapf {posargs:--recursive --diff src test}
[testenv:format-in-place]
skip_install = True
deps =
yapf
toml
commands =
yapf --version
yapf {posargs:--recursive --in-place src test}
[testenv:lint]
skip_install = True
deps =
flake8
flake8-bugbear
commands =
flake8 {posargs:src test}
[testenv:docs]
deps =
sphinx
sphinx-book-theme
commands =
sphinx-apidoc \
--force \
--implicit-namespaces \
--module-first \
--separate \
-o docs/reference/ \
src/njab/
sphinx-build -n -W --keep-going -b html docs/ docs/_build/
[testenv:devdocs]
deps =
sphinx
sphinx-autobuild
sphinx-book-theme
commands =
sphinx-apidoc \
--force \
--implicit-namespaces \
--module-first \
--separate \
-o docs/reference/ \
src/njab/
sphinx-autobuild -n -W -b html docs/ docs/_build/