-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
54 lines (46 loc) · 1.17 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
[tox]
isolated_build = True
skipsdist = true
envlist =
linter
coverage
[testenv]
allowlist_externals =
poetry
pytest
commands =
poetry install -v
[testenv:linter]
commands =
poetry install -v
flake8
[testenv:formatter]
commands =
poetry install -v
isort --profile black --filter-files --line-length 79 --fgw 2 {toxinidir}
black -l79 {toxinidir}
[testenv:pytest]
commands =
pytest
[testenv:pytestfast]
commands =
pytest --without-integration --without-slow-integration {posargs}
[testenv:coverage]
allowlist_externals = coverage
commands =
coverage run -m pytest --without-integration --without-slow-integration --junitxml=report.xml --order-scope=module --color=yes
coverage report -m --fail-under=80
[testenv:docs]
changedir = docs/source
allowlist_externals =
poetry
cp
passenv = http_proxy https_proxy
commands =
poetry install -v
sphinx-apidoc -o ./fortilib -M ../../fortilib
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
cp -rf {envtmpdir}/html {toxinidir}/public/
[flake8]
exclude = .git,.tox,venv,.venv,.vscode,tests/data.py,tests/test_data,tests/settings.py
ignore = E501,W503