forked from next-actions/pytest-mh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
35 lines (31 loc) · 699 Bytes
/
tox.ini
File metadata and controls
35 lines (31 loc) · 699 Bytes
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
[tox]
envlist = py3,py311,lint,docs
[testenv]
deps =
-r{toxinidir}/requirements.txt
commands =
pytest -vvv tests
[testenv:lint]
deps =
black
flake8
isort
mypy
pycodestyle
commands =
flake8 pytest_mh example tests docs
pycodestyle pytest_mh example tests docs
isort --check-only pytest_mh example tests docs
mypy --install-types --non-interactive pytest_mh example tests docs
black --check pytest_mh example tests docs
[testenv:docs]
changedir = docs
allowlist_externals = make
deps =
-r{toxinidir}/docs/requirements.txt
commands =
make html SPHINXOPTS="-W --keep-going"
[gh]
python =
3.x = py3, lint, docs
3.11 = py311, lint, docs