-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathtox.ini
61 lines (53 loc) · 1.13 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
[tox]
envlist = lint,format,licenses,docs,security,py38,py39,py310,py311,py312,coverage
isolated_build = true
[testenv]
passenv = HOME
skip_install = true
allowlist_externals=
poetry
commands_pre =
poetry install -E cli
commands =
poetry run coverage run -m pytest -vv fasjson_client/tests/unit {posargs}
[testenv:coverage]
allowlist_externals =
rm
commands =
rm -rf htmlcov coverage.xml
coverage combine
-coverage xml
-coverage html
coverage report -m
depends =
py38
py39
py310
py311
py312
[testenv:docs]
changedir = docs
allowlist_externals =
poetry
rm
mkdir
commands=
mkdir -p _static
rm -rf _build
poetry run sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
[testenv:lint]
commands =
poetry run flake8 {posargs}
[testenv:format]
commands =
poetry run black --check --diff {posargs:.}
[testenv:licenses]
commands =
poetry run {toxinidir}/devel/run-liccheck.sh
[testenv:security]
commands =
poetry run bandit -r fasjson_client/ -x fasjson_client/tests/ -ll
[flake8]
show-source = True
max-line-length = 100
exclude = .git,.tox,dist,*egg