-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
35 lines (31 loc) · 886 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
[tox]
minversion = 3.9.0
envlist =
format
lint
py{39,310,311,312}
isolated_build = true
skip_missing_interpreters = true
[testenv]
deps = poetry
setenv =
# Relax the code coverage requirement on Python 3.9 because coverage
# erroneously doesn’t count a `break` statement which clearly is executed (as
# the preceding statements which aren’t flagged).
py39: COV_FAIL_UNDER = 99
skip_install = true
sitepackages = false
commands_pre =
poetry install --all-extras
commands =
pytest --import-mode importlib -n auto -o 'addopts=--cov --cov-config .coveragerc --cov-report term --cov-report xml --cov-report html --cov-fail-under {env:COV_FAIL_UNDER:100}' tests/
[testenv:format]
deps = ruff
commands_pre =
commands = ruff format --diff rpmautospec/ tests/
[testenv:lint]
deps = ruff
commands_pre =
commands = ruff check rpmautospec/ tests/
[flake8]
max-line-length = 100