-
Notifications
You must be signed in to change notification settings - Fork 32
/
tox.ini
62 lines (51 loc) · 1.19 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
[tox]
envlist = mypy,py310,py311,py312,lint,format,diff-cover,docs,bandit
isolated_build = True
[testenv]
deps = poetry
allowlist_externals =
rm
commands =
poetry install
rm -rf htmlcov coverage.xml
py.test -vv --cov-config .coveragerc --cov=hotness \
--cov-report term --cov-report xml --cov-report html {posargs}
setenv =
PYCURL_SSL_LIBRARY = openssl
passenv = HOME
[testenv:diff-cover]
commands =
poetry install
diff-cover coverage.xml --compare-branch=origin/master --fail-under=80
[testenv:docs]
changedir = docs
allowlist_externals =
mkdir
rm
commands=
poetry install
mkdir -p _static
rm -rf _build
mkdir -p images
sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html
[testenv:lint]
commands =
poetry install
python -m flake8 hotness/ tests/ {posargs}
[testenv:format]
commands =
poetry install
python -m black --check {posargs:.}
[testenv:mypy]
commands =
poetry install
python -m mypy hotness/ {posargs}
[testenv:bandit]
commands =
poetry install
bandit -r hotness/ -x hotness/tests -ll
[flake8]
show-source = True
max-line-length = 100
ignore = E203,W503
exclude = .git,.tox,dist,*egg,build,files