-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (50 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
# Tox configuration file
# Read more under https://tox.wiki/
[tox]
minversion = 4.0.0
envlist = py39, py310, py311
isolated_build = true
[testenv]
description = Invoke pytest to run automated tests
usedevelop = true
extras =
test
commands =
pytest {posargs}
setenv =
COVERAGE_FILE=.coverage.{envname}
[testenv:format]
description = Format python code
extras =
format
commands =
black {posargs:src tests}
isort {posargs:src tests}
autoflake {posargs:--recursive src tests}
eradicate --in-place --aggressive {posargs:--recursive src tests}
[testenv:lint]
description = Lint pyproject.toml and python source code
extras =
lint
commands =
flake8 {posargs:src}
pylint {posargs:src}
mypy {posargs:src}
bandit --quiet --configfile {toxinidir}/pyproject.toml {posargs:--recursive src}
vulture {posargs:src}
xenon --max-average A --max-modules A --max-absolute A {posargs:src}
[testenv:security]
description = Security check on dependencies
recreate = true
extras =
security
commands =
safety check
[testenv:docs]
description = Build the docs
extras =
docs
changedir = {toxinidir}/docs
allowlist_externals = /usr/bin/make
commands =
make html