forked from ampledata/kiss
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
42 lines (37 loc) · 679 Bytes
/
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
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[tox]
isolated_build = True
envlist = py37,py38,py39,py310,publish,static
[testenv]
deps =
pytest ~= 7.0
pytest-cov ~= 3.0
commands =
pytest --cov kiss -ra {posargs:tests}
[testenv:publish]
passenv = TWINE_*
deps =
build ~= 0.7.0
twine ~= 4.0.0
commands =
python -m build
python -m twine {posargs:check} {env:TWINE_DIST_DIR:dist/*}
[flake8]
max-line-length = 90
extend-ignore = E203
[testenv:static]
deps =
black ~= 22.3.0
flake8 ~= 4.0
mypy
pylint
commands =
black --check kiss tests
flake8 kiss tests
pylint kiss
-mypy --strict kiss