forked from fedora-infra/fedora-messaging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
47 lines (39 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
37
38
39
40
41
42
43
44
45
46
47
[tox]
envlist = checks,licenses,py{36,37,38,39,310}-{unittest,integration}
[testenv]
deps =
-rdev-requirements.txt
sitepackages = False
commands =
coverage erase
unittest: coverage run -m pytest -vv fedora_messaging/tests/unit {posargs}
integration: coverage run -m pytest -vv fedora_messaging/tests/integration {posargs}
coverage report -m
coverage xml
coverage html
[testenv:docs]
changedir = docs
whitelist_externals =
mkdir
rm
commands=
mkdir -p _static
rm -rf _build
sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
sphinx-build -W -b man -d {envtmpdir}/doctrees . _build/man
[testenv:checks]
deps =
pre-commit
commands = pre-commit run --all-files
[testenv:licenses]
deps =
liccheck
commands =
liccheck -s .license_strategy.ini
[flake8]
show-source = True
max-line-length = 100
ignore = E203,W503
exclude = .git,.tox,dist,*egg
[pytest]
testpaths = fedora_messaging/tests/unit/