-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
36 lines (31 loc) · 970 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
[tox]
envlist = lint,py39,py310,py311,diff-cover
# If the user is missing an interpreter, don't fail
skip_missing_interpreters = True
[testenv]
sitepackages = false
skip_install = true
allowlist_externals =
poetry
commands_pre =
poetry install --all-extras
commands =
poetry run pytest -vv --cov --cov-report=html --cov-report=xml --cov-report=term-missing tests {posargs}
# When running in OpenShift you don't have a username, so expanduser
# won't work. If you are running your tests in CentOS CI, this line is
# important so the tests can pass there, otherwise tox will fail to find
# a home directory when looking for configuration files.
passenv = HOME
[testenv:diff-cover]
deps =
diff-cover
commands =
diff-cover coverage.xml --compare-branch=origin/develop --fail-under=100
[testenv:lint]
allowlist_externals =
{[testenv]allowlist_externals}
pre-commit
git
commands = pre-commit run --all-files
[flake8]
max-line-length = 100