-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
39 lines (34 loc) · 927 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
[tox]
envlist = py3{9,10,11,12},lint
isolated_build = true
skip_missing_interpreters = true
[testenv]
allowlist_externals = poetry
commands_pre = poetry install --no-ansi
commands = poetry run pytest --cache-clear --cov="{toxinidir}" --cov-config="{toxinidir}/pyproject.toml" --cov-report term-missing --basetemp="{envtmpdir}" {posargs} --disable-pytest-warnings
skip_install = true
[testenv:codecov]
allowlist_externals =
codecov
poetry
commands =
poetry run coverage xml --ignore-errors
codecov
deps = coverage[toml]
passenv = CODECOV_TOKEN
skip_install = true
[testenv:lint]
allowlist_externals = poetry
commands_pre = poetry install --no-ansi
commands = poetry run pre-commit run -a
skip_install = true
[testenv:release]
commands =
semantic-release version
semantic-release publish
passenv = HOME
skip_install = true
[flake8]
ignore = E203, E501, W503
max-line-length = 80
select = B,C,E,F,W,T4,B9