-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
53 lines (48 loc) · 841 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
43
44
45
46
47
48
49
50
51
52
53
[tox]
isolated_build = true
envlist = py{36,37,38,39,310}, format, lint, build
[testenv]
allowlist_externals = pytest
extras =
test
passenv = *
setenv =
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = ignore
commands =
pytest --cov=addrparser --cov-branch --cov-report=xml --cov-report=term-missing tests
[testenv:format]
allowlist_externals =
isort
black
extras =
test
commands =
isort addrparser
black addrparser tests
[testenv:lint]
allowlist_externals =
flake8
mypy
extras =
test
commands =
flake8 addrparser tests
mypy addrparser tests
[testenv:build]
allowlist_externals =
poetry
mkdocs
extras =
doc
dev
commands =
poetry build
mkdocs build
[gh-actions]
python =
3.10: py310
3.9: py39
3.8: py38, format, lint, build
3.7: py37
3.6: py36