-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
57 lines (47 loc) · 929 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
[flake8]
ignore=E203
[pytest]
testpaths = tests
[gh-actions]
python =
2.7: py27
3.10: py310, lint
[tox]
envlist = lint, py27, py310, coverage-report
isolated_build = True
[testenv]
# Prevent random setuptools/pip breakages like
# https://github.com/pypa/setuptools/issues/1042 from breaking builds.
# See also tox.ini in attrs project.
setenv =
VIRTUALENV_NO_DOWNLOAD=1
deps =
pytest
coverage
future
[testenv:py27]
commands = coverage run -m pytest
[testenv:py310]
commands = coverage run -m pytest
[coverage:run]
parallel = True
branch = True
source = blossom
[coverage:report]
omit =
*/__main__.py
*/__init__.py
[testenv:coverage-report]
basepython = python3.10
skip_install = true
parallel_show_output = true
commands =
coverage combine
coverage report
[testenv:lint]
basepython = python3.10
skip_install = true
deps =
pre-commit
commands =
pre-commit run --all-files