-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathtox.ini
50 lines (41 loc) · 1012 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
40
41
42
43
44
45
46
47
48
49
50
[tox]
env_list =
py3
linters
min_version = 4.1
requires =
[testenv]
description = Run unit tests with pytest
allowlist_externals = poetry
base_python = python3
skip_install = true
commands_pre =
poetry install
commands =
poetry run pytest --cov src --cov-report=xml --cov-report=term-missing --cov-branch
set_env =
PYTHONPATH = {toxinidir}
ASDF_DATA_DIR = {env:HOME}/.asdf
pass_env = DOCKER_HOST
[testenv:linters]
commands =
{[testenv:black]commands}
{[testenv:isort]commands}
{[testenv:ruff]commands}
{[testenv:flake8]commands}
{[testenv:pylint]commands}
{[testenv:vulture]commands}
[testenv:black]
commands = poetry run black --check .
[testenv:isort]
commands = poetry run isort --check-only .
[testenv:ruff]
commands = poetry run ruff .
[testenv:flake8]
commands = poetry run flake8 .
[testenv:pylint]
commands = poetry run pylint --recursive=y .
[testenv:pytest]
commands = poetry run pytest -vvvv .
[testenv:vulture]
commands = poetry run vulture