forked from fedora-infra/fasjson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
71 lines (60 loc) · 1.53 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[tox]
envlist = lint,format,licenses,docs,security,covclean,{py39,py310}-{unittest},covreport
isolated_build = true
[testenv]
passenv = HOME
sitepackages = false
skip_install = true
allowlist_externals =
poetry
commands_pre =
poetry install
commands =
unittest: poetry run pytest -vv --cov --cov-append --cov-report= fasjson/tests/unit {posargs}
depends =
{py39,py310}: covclean
covreport: py39-unittest,py310-unittest
[testenv:covreport]
basepython = python3.10
commands =
-poetry run coverage html
poetry run coverage report -m
[testenv:covclean]
commands = poetry run coverage erase
[testenv:docs]
changedir = docs
deps =
-rdocs/requirements.txt
allowlist_externals =
{[testenv]allowlist_externals}
rm
mkdir
commands=
rm -rf _build
rm -rf _source
rm -rf _api
mkdir _api
poetry run sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
[testenv:lint]
commands =
pre-commit run --all-files flake8
[testenv:format]
commands =
pre-commit run --all-files black
pre-commit run --all-files isort
[testenv:licenses]
allowlist_externals =
{[testenv]allowlist_externals}
{toxinidir}/devel/run-liccheck.sh
commands =
{toxinidir}/devel/run-liccheck.sh
[testenv:security]
commands =
poetry run pip install --upgrade pip
pre-commit run --all-files bandit
poetry run safety check --full-report -i 51499
# Ignore 51499: we don't use the wheel CLI. <https://pyup.io/v/51499/f17/>
[flake8]
show-source = True
max-line-length = 100
exclude = .git,.tox,dist,*egg