forked from release-engineering/waiverdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
59 lines (52 loc) · 1.07 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
[tox]
envlist = bandit,lint,py39,docs
isolated_build = True
[testenv]
basepython = python3.9
extras =
test
commands =
pytest \
--cov-reset \
--cov-config=.coveragerc \
--cov=waiverdb \
--cov-report=term \
--cov-report=xml \
--cov-report=html \
{posargs}
[testenv:bandit]
skip_install = true
deps =
bandit
commands =
bandit \
--exclude tests \
--recursive waiverdb
[testenv:docs]
# Same Python version as in .readthedocs.yaml
basepython = python3.8
changedir = docs
extras =
docs
allowlist_externals =
mkdir
rm
commands=
mkdir -p _static
rm -rf _build/
sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
[testenv:lint]
skip_install = true
deps =
flake8
commands =
python -m flake8 {posargs}
[pytest]
testpaths = tests/
[flake8]
show-source = True
max-line-length = 100
exclude = .git,.tox,dist,*egg,env_waiverdb,docs,conf,waiverdb/migrations
# E124: closing bracket does not match visual indentation
# W503 line break before binary operator
ignore = E124, W503