-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
58 lines (45 loc) · 969 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
54
55
56
57
58
[pytest]
strict = true
testpaths = test
[tox]
envlist = clean, lint, py{36,37,38,39}-testenv, coverage-report
isolated_build = true
[tox:.package]
basepython = python3
[gh-actions]
python =
3.6: py36
3.7: py37, lint, coverage-report
3.8: py38
3.9: py39
[testenv:lint]
basepython = python3.7
skip_install = true
deps = pre-commit
passenv = HOMEPATH # needed on Windows
commands = pre-commit run --all-files
[testenv]
skip_install = true
deps = pytest
poetry
commands =
poetry install -E console
pytest --cov --cov-append --cov-report=term-missing
[testenv:coverage-report]
basepython = python3.7
deps = coverage[toml]
skip_install = true
commands =
; coverage combine
coverage report
[testenv:clean]
deps = coverage[toml]
skip_install = true
commands = coverage erase
[flake8]
exclude = .tox
show-source = true
enable-extensions=G
application-import-names = structlog_to_seq
max-line-length = 88
extend-ignore = E203