-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
80 lines (71 loc) · 1.41 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
71
72
73
74
75
76
77
78
79
80
[tox]
envlist =
clean
py{37,38}
report
black
isort
flake8
mypy
skipsdist = true
isolated_build = true
[testenv]
setenv =
# Required if -p is enabled on Windows.
# https://github.com/tox-dev/tox/pull/2641
PYTHONIOENCODING=utf-8
PY_COLORS=1
allowlist_externals =
poetry
commands_pre =
poetry install --no-root --with test -v
commands =
#poetry run pytest --cov --cov-append --cov-report=term-missing {posargs}
poetry run coverage run -p -m pytest {posargs:-v}
depends =
py{37,38}: clean
report: py{37,38}
[testenv:clean]
deps = coverage[toml]
skip_install = true
commands_pre = # nop
commands =
poetry run coverage erase
[testenv:report]
deps = coverage[toml]
skip_install = true
commands_pre = # nop
commands =
poetry run coverage combine
poetry run coverage report
poetry run coverage {posargs:html}
[testenv:black]
deps = black
commands_pre = # nop
commands =
poetry run black . --check --diff --color
[testenv:isort]
deps =
isort
colorama
commands_pre = # nop
commands =
poetry run isort . --check --diff --color
[testenv:flake8]
deps = Flake8-pyproject
commands_pre = # nop
commands =
poetry run flake8p .
[testenv:mypy]
deps = mypy
commands_pre = # nop
commands =
poetry run mypy .
#[coverage:paths]
#source =
# src/
# /Users/runner/work/*/*/src
#[coverage:run]
#relative_files = True
#source = src/
#branch = True