-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
tox.ini
66 lines (57 loc) · 1.22 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
[flake8]
max-line-length = 99
extend-ignore = E203
extend-exclude = node_modules, venv
# tox-gh-actions configuration.
[gh-actions]
python =
3.12: lint, fmt-check, type-check, user-guide
[tox]
envlist =
fmt-check
lint
type-check
user-guide
skipsdist = true
[testenv:type-check]
deps =
-r{toxinidir}/dev-requirements.txt
commands =
mypy deploy scripts
mypy --platform linux maintenance/scripts
[testenv:lint]
deps =
-r{toxinidir}/dev-requirements.txt
commands =
flake8
[testenv:fmt]
deps =
-r{toxinidir}/dev-requirements.txt
commands =
isort .
black .
[testenv:fmt-check]
deps =
-r{toxinidir}/dev-requirements.txt
commands =
isort --check .
black --check .
[testenv:user-guide]
deps =
-r{toxinidir}/dev-requirements.txt
changedir = {toxinidir}/docs/user_guide/
commands =
mkdocs build
[testenv:user-guide-serve]
deps =
-r{toxinidir}/dev-requirements.txt
changedir = {toxinidir}/docs/user_guide/
commands =
mkdocs serve
[testenv:user-guide-github-pages]
deps =
-r{toxinidir}/dev-requirements.txt
changedir = {toxinidir}/docs/user_guide/
commands =
# See: https://squidfunk.github.io/mkdocs-material/publishing-your-site/
mkdocs gh-deploy --force