forked from fedora-infra/webhook-to-fedora-messaging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
43 lines (37 loc) · 946 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
40
41
42
43
[tox]
envlist = checks,licenses,docs,py{311,312}
isolated_build = true
[testenv]
passenv = HOME
sitepackages = false
skip_install = true
set_env =
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}
[testenv:docs]
changedir = docs
allowlist_externals =
{[testenv]allowlist_externals}
mkdir
rm
commands=
mkdir -p _static
rm -rf _build
rm -rf _source
poetry run sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
[testenv:checks]
allowlist_externals =
{[testenv]allowlist_externals}
pre-commit
git
commands = pre-commit run --all-files
[testenv:licenses]
commands = poetry run devel/run-liccheck.sh
# We're using Ruff now, but we leave this line in place for contributors whose
# editor still only runs flake8.
[flake8]
max-line-length = 100