This repository has been archived by the owner on May 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
67 lines (56 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
[tox]
envlist = lint,format,licenses,security,covclean,docs,{py36,py37,py38,py39,py310}-{unittest,integration},covreport
isolated_build = true
requires =
poetry
tox-poetry
[testenv]
passenv = HOME
sitepackages = false
commands =
unittest: pytest -vv --cov --cov-append --cov-report= noggin/tests/unit {posargs}
integration: pytest -vv --no-cov noggin/tests/integration {posargs}
depends =
{py36,py37,py38,py39,py310}: covclean
covreport: py36-unittest,py37-unittest,py38-unittest,py39-unittest,py310-unittest
[testenv:covreport]
basepython = python3.10
commands =
-coverage html
coverage report -m
[testenv:covclean]
commands = coverage erase
[testenv:docs]
changedir = docs
allowlist_externals =
mkdir
rm
commands=
rm -rf {toxinidir}/noggin_aaa.egg-info
mkdir -p _static
rm -rf _build
rm -rf _source
sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
[testenv:lint]
commands =
pre-commit run --all-files flake8
pre-commit run --all-files rstcheck
[testenv:format]
commands =
pre-commit run --all-files black
pre-commit run --all-files isort
[testenv:licenses]
# Make tox's poetry executable available for the run-liccheck script
setenv =
PATH={env:PATH}{:}{env:TOX_WORK_DIR}{/}.tox{/}bin
commands =
{toxinidir}/devel/run-liccheck.sh
[testenv:security]
commands =
pip install --upgrade pip
pre-commit run --all-files bandit
safety check --full-report -i 42050 -i 42852
[flake8]
show-source = True
max-line-length = 100
exclude = .git,.tox,dist,*egg