-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
70 lines (58 loc) · 1.4 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
68
69
70
[tox]
isolated_build = True
envlist = py36, py37, py38, py39, black, flake8, pylint, bandit, mypy, docs, coverage, isort
[flake8]
exclude = .git,__pycache__,docs,build,dist,.tox
show-source = True
max-line-length = 88
[coverage:run]
branch = True
omit =
postgres_backend/
.tox/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
if self\.debug
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == "__main__":
show_missing = True
ignore_errors = False
fail_under = 100
[testenv]
deps = -r requirements-dev.txt
commands = coverage run -m pytest
setenv =
COVERAGE_FILE={toxworkdir}/.coverage.{envname}
[testenv:coverage]
depends = py36, py37, py38, py39
parallel_show_output = True
deps = coverage
skip_install = True
setenv = COVERAGE_FILE={toxworkdir}/.coverage
commands =
coverage combine
coverage report --fail-under 100
[testenv:black]
skip_install = true
commands = black --diff --check kisee
[testenv:flake8]
skip_install = true
commands = flake8 kisee tests
[testenv:pylint]
commands = pylint kisee
[testenv:bandit]
skip_install = true
commands = bandit -r kisee -s B404,B607,B603
[testenv:mypy]
skip_install = true
commands = mypy --ignore-missing-imports kisee tests
[testenv:docs]
skip_install = true
commands = sphinx-build -W -b html docs docs/_build/html
[testenv:isort]
skip_install = True
commands = isort --profile black --check kisee/ tests/