-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
51 lines (46 loc) · 1.09 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
[tox]
skipsdist = True
skip_missing_interpreters = True
envlist = lint, unit, integration
min_version = 4.0.0
[vars]
src_path = {tox_root}/src
tests_path = {tox_root}/tests
all_path = {[vars]src_path} {[vars]tests_path}
[testenv:format]
description = Apply coding style standards to code
deps =
black
ruff
commands =
black {[vars]all_path}
ruff --fix {[vars]all_path}
[testenv:lint]
description = Check code against coding style standards
deps =
black
codespell
mypy
ruff
commands =
pip install .
codespell {[vars]src_path}
black --check --diff {[vars]src_path}
ruff {[vars]src_path}
mypy {[vars]src_path}
[testenv:unit]
description = Run unit tests
deps =
pytest
pytest-xdist[psutil]
commands =
pip install --no-deps .
pytest -x -n auto -vv --tb long --log-cli-level=INFO {toxinidir}/tests/unit/ {posargs}
[testenv:integration]
description = Run integration tests
deps =
pytest
pytest-xdist[psutil]
commands =
pip install --no-deps .
pytest -x -n auto -vv --tb long --log-cli-level=INFO {toxinidir}/tests/integration/ {posargs}