-
Notifications
You must be signed in to change notification settings - Fork 18
/
tox.ini
39 lines (35 loc) · 887 Bytes
/
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
[tox]
envlist = {py3,py311,lint,docs}{,-upstream}
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-tests.txt
upstream: git+https://github.com/next-actions/pytest-mh
commands =
pytest -vvv tests
[testenv:lint{,-upstream}]
deps =
{[testenv]deps}
black
flake8
isort
mypy
pycodestyle
commands =
flake8 sssd_test_framework tests
pycodestyle sssd_test_framework tests
isort --check-only sssd_test_framework tests
mypy --install-types --non-interactive sssd_test_framework tests
black --check sssd_test_framework tests
[testenv:docs{,-upstream}]
changedir = docs
allowlist_externals = make
deps =
{[testenv]deps}
-r{toxinidir}/docs/requirements.txt
commands =
make html SPHINXOPTS="-W --keep-going"
[gh]
python =
3.x = {py3,lint,docs}{,-upstream}
3.11 = {py311,lint,docs}{,-upstream}