-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
60 lines (54 loc) · 1.25 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
[tox]
minversion = 3.14.0
isolated_build = true
envlist =
publish
static
py{37,38,39,310}
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310, static, publish
[testenv]
deps =
pytest ~= 7.1.0
pytest-cov ~= 4.0.0
pytest-randomly ~= 3.12.0
pytest-xdist ~= 2.5.0
commands =
pytest --cov git_rebase_branches --cov-branch --cov-fail-under 20 --cov-report term-missing {posargs:-n auto}
[pytest]
testpaths = tests
[testenv:static]
basepython = python3.10
deps =
bandit[toml] ~= 1.7.0
black ~= 22.10.0
flake8 ~= 5.0.0
flake8-bugbear ~= 22.9.23
flake8-docstrings ~= 1.6.0
mypy >= 0.980, < 0.990
pylint ~= 2.15.0
types-setuptools ~= 65.4.0
importlib-metadata ~= 5.0.0 # for type-checking non-py37
commands =
black --check src tests
flake8 src tests
mypy --strict src
bandit --configfile pyproject.toml --recursive src
-pylint src
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8
[flake8]
max-line-length = 88
extend-ignore = E203
[testenv:publish]
passenv = TWINE_*
basepython = python3.10
deps =
build ~= 0.8.0
twine ~= 4.0.0
commands =
{envpython} -m build --outdir {distdir} .
twine {posargs:check} {distdir}/*