-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
75 lines (66 loc) · 1.26 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
[tox]
requires =
tox>=4.2
no_package = true
[testenv]
deps =
.[testing]
commands =
pytest {posargs}
[testenv:check]
deps =
mypy
commands =
mypy -p sshoot {posargs}
[testenv:coverage]
deps =
.[testing]
pytest-cov
commands =
pytest --cov sshoot/ {posargs}
[testenv:docs]
deps =
.
sphinx
sphinx-autodoc-typehints
commands =
sphinx-build -b html docs html {posargs}
[testenv:format]
deps =
black
isort
pyproject-fmt
tox-ini-fmt
commands =
isort {[base]lint_files}
black -q {[base]lint_files}
- pyproject-fmt pyproject.toml
- tox-ini-fmt tox.ini
[testenv:i18n]
deps =
Babel
commands =
pybabel extract --project sshoot --sort-by-file --output sshoot/locale/sshoot.pot sshoot
pybabel update --domain sshoot --input-file sshoot/locale/sshoot.pot --output-dir sshoot/locale
pybabel compile --domain sshoot --directory sshoot/locale
[testenv:lint]
deps =
black
flake8
flake8-pyproject
isort
pyproject-fmt
commands =
isort --check-only --diff {[base]lint_files}
black --check {[base]lint_files}
flake8 {[base]lint_files}
pyproject-fmt --check pyproject.toml
[testenv:run]
deps =
-e .
commands =
sshoot {posargs}
[base]
lint_files =
sshoot \
tests