generated from bryanculbertson/python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
40 lines (30 loc) · 824 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
[tox]
skipsdist = True
isolated_build = True
skip_install = True
envlist =
lint
test
[tox:.package]
basepython = python3
[testenv]
allowlist_externals = poetry
install_command = poetry install --quiet --extras {packages} --no-root --no-interaction
[testenv:lint]
commands =
poetry run pre-commit run --all-files
[testenv:install-hooks]
commands =
poetry run pre-commit install -f --install-hooks
[testenv:test]
commands=
poetry install --quiet --no-root --no-interaction
poetry run pytest -n auto {posargs}
[testenv:test-coverage]
commands=
poetry install --quiet --no-root --no-interaction
poetry run pytest -n auto --cov-config=.coveragerc --cov-report=xml {posargs}
[testenv:test-debug]
commands=
poetry install --quiet --no-root --no-interaction
poetry run pytest -n auto --pdb {posargs}