-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
30 lines (26 loc) · 876 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]
envlist = {py39,py310,py311,py312},lint
skip_missing_interpreters = True
isolated_build = true
[testenv]
# 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
sitepackages = false
skip_install = true
allowlist_externals =
poetry
commands_pre =
poetry install
commands =
poetry run pytest -vv --cov --cov-report=term-missing --cov-report=xml --cov-report=html {posargs:tests}
[testenv:lint]
commands =
poetry run pre-commit run -a --all-files
# We use Ruff instead of flake8 but configure it appropriately so it doesn't
# complain, e.g. if it's run via a global hook.
[flake8]
max-line-length = 100
extend-ignore = E203