-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
34 lines (27 loc) · 799 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
[tox]
basepython = py310
isolated_build = True
envlist = ut,mypy,black,flake8,isort
[testenv]
extras = cli
allowlist_externals = poetry
commands_pre =
poetry install --no-root --sync --quiet -E cli
[testenv:ut]
commands =
poetry run pytest --cov=philipstv --cov-config=pyproject.toml --cov-report=term {toxinidir}/tests {posargs}
[testenv:mypy]
commands =
poetry run mypy {toxinidir}/src {toxinidir}/tests {posargs}
[testenv:black]
no_package = True
commands =
poetry run black --check --diff {toxinidir}/src {toxinidir}/tests {posargs}
[testenv:flake8]
no_package = True
commands =
poetry run flake8 {toxinidir}/src {toxinidir}/tests {posargs}
[testenv:isort]
no_package = True
commands =
poetry run isort --check --diff {toxinidir}/src {toxinidir}/tests {posargs}