-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathtox.ini
More file actions
47 lines (41 loc) · 1.16 KB
/
tox.ini
File metadata and controls
47 lines (41 loc) · 1.16 KB
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
[tox]
isolated_build = True
envlist = linter,coverage-{linux,macos}
skip_missing_interpreters = True
[testenv]
base_python = py310
whitelist_externals = pdm
platform = linux: linux
macos: darwin
[testenv:coverage-{linux,macos}]
commands =
linux: pdm install -G alt_vercmp
macos: pdm install
pdm run python -X dev -m coverage run
pdm run coverage xml -o {toxworkdir}/coverage.xml -i
pdm run coverage html -d {toxworkdir}/htmlcov -i
pdm run coverage report --fail-under=100.0
[testenv:linter]
commands =
pdm install
pdm run isort --check .
pdm run black --check .
pdm run pydocstyle .
pdm run flake8
pdm run bandit -c pyproject.toml -r .
pdm run mypy --install-types --non-interactive -p repod -p tests
pdm run vulture --min-confidence 70 repod tests
[testenv:docs]
commands =
pdm install
pdm run repod-file schema export docs/schema/
pdm run sphinx-build -M html docs/ docs/_build/
pdm run sphinx-build -b man docs/ docs/_build/man/
[testenv:integration]
commands =
pdm install
pdm run pytest -vv -m "integration"
[testenv:regex]
commands =
pdm install
pdm run pytest -m "regex"