-
Notifications
You must be signed in to change notification settings - Fork 12
/
tox.ini
30 lines (27 loc) · 678 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
[tox]
minversion = 2.4
envlist = formatting, py36, py37, py38, py39, py310, py311, pypy
skip_missing_interpreters = true
requires = pip >=21.3.1
[testenv:formatting]
basepython = python3.8
deps =
pre-commit~=2.16
commands =
pre-commit run --all-files
[testenv]
setenv =
COVERAGE_FILE = {toxinidir}/.coverage.{envname}
deps = poetry
commands =
poetry install
poetry run pytest {toxinidir}/tests/ {posargs:}
[testenv:coverage-html]
setenv =
COVERAGE_FILE = {toxinidir}/.coverage
deps = poetry
skip_install = true
commands =
poetry install
poetry run coverage combine
poetry run coverage html --ignore-errors --rcfile={toxinidir}/.coveragerc