forked from seantis/suitable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
56 lines (45 loc) · 907 Bytes
/
pyproject.toml
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
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
log_level = "INFO"
testpaths = ["tests"]
[tool.coverage.run]
branch = true
source = ["src"]
[tool.bandit]
exclude_dirs = ["tests"]
skips = ["B101"]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py38,py39,py310,flake8,bandit,report
[testenv]
usedevelop = true
setenv =
py{38,39,310}: COVERAGE_FILE = .coverage.{envname}
deps =
-e{toxinidir}[tests]
commands = pytest --cov --cov-report= {posargs}
passenv = *
[testenv:flake8]
basepython = python3.10
skip_install = true
deps =
flake8
flake8-bugbear
commands = flake8 src/ tests/
[testenv:bandit]
basepython = python3.10
skip_install = true
deps =
bandit[toml]
commands = bandit -q -c pyproject.toml -r src
[testenv:report]
deps =
coverage
skip_install = true
commands =
coverage combine
coverage report -m
"""