-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
132 lines (114 loc) · 2.36 KB
/
tox.ini
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
127
128
129
130
131
132
[tox]
requires =
tox>=4.2
env_list =
py313
py312
py311
py310
[testenv]
extras =
test
parallel_show_output = true
pass_env =
HYPOTHESIS_PROFILE
PYENCHANT_LIBRARY_PATH
commands =
pytest -n auto --cov=enlyze --cov-report=term-missing tests/
[testenv:tox-fmt]
skip_install = true
deps =
tox-ini-fmt
commands =
tox-ini-fmt tox.ini
[testenv:pyproject-fmt]
skip_install = true
deps =
pyproject-fmt
commands =
pyproject-fmt pyproject.toml
[testenv:docs-fmt]
skip_install = true
deps =
docstrfmt
commands =
docstrfmt --extend-exclude docs/installation.rst docs/ src/ *.rst
[testenv:mypy]
deps =
mypy
commands =
mypy --strict src/
[testenv:docs]
deps =
sphinx
sphinx-rtd-theme
sphinx-tabs
sphinxcontrib-spelling
commands =
sphinx-build -W docs/ docs/_build/html -b html {posargs}
[testenv:docs-linkcheck]
commands =
sphinx-build -W docs/ docs/_build/linkcheck -b linkcheck {posargs}
base = docs
[testenv:docs-spellcheck]
commands =
sphinx-build -W docs/ docs/_build/spellcheck -b spelling {posargs}
base = docs
[testenv:docs-coverage]
commands =
sphinx-build -W docs/ docs/_build/coverage -b coverage {posargs}
base = docs
[testenv:docs-autobuild]
deps =
{[testenv:docs]deps}
watchdog
commands =
watchmedo shell-command -W -i docs/_build -R -p '*.rst;*.py' -c '{[testenv:docs]commands}' docs/ src/
[testenv:docstr-coverage]
skip_install = true
deps =
docstr-coverage
commands =
docstr-coverage --skip-private --skip-file-doc --skip-init src/ {posargs}
[testenv:flake8]
skip_install = true
deps =
flake8
commands =
flake8 src/ tests/
[testenv:black]
skip_install = true
deps =
black
commands =
black --check --diff --color src/ tests/ docs/
[testenv:isort]
skip_install = true
deps =
isort
commands =
isort --check --diff src/ tests/
[testenv:bandit]
skip_install = true
deps =
bandit
commands =
bandit -r src/
[testenv:requirements]
description = Compile requirements.txt for all run-time and dev dependencies.
skip_install = true
deps =
pip-tools
commands =
pip-compile --upgrade --all-extras --resolver=backtracking -o requirements.txt pyproject.toml
[testenv:dev]
description = Setup dev environment via `tox --devenv .venv -r -e dev`
package = editable
extras =
docs
lint
test
[gh-actions]
python =
3.10: py310
3.11: py311