-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
53 lines (47 loc) · 1.15 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
[tox]
envlist = py-{echo,noecho},report
isolated_build = True
[testenv]
setenv =
py-{echo,noecho}: COVERAGE_FILE = .coverage.{envname}
commands =
pytest --cov alhambra_mixes --cov-report=xml {posargs:-vv}
deps =
pytest
pytest-cov
!py-noecho: kithairon
depends =
py-{echo,noecho}: clean
codecov: py-{echo,noecho}
report: py-{echo,noecho}
[testenv:black]
description = run black with check-only under {basepython}
commands = black --check --color --diff src/ tests/ setup.py
deps = black
skip_install = true
extras = testing
[testenv:flake8]
description = run flake8 under {basepython}
commands = flake8 src/ tests/ setup.py
deps = flake8
skip_install = true
extras = testing
[testenv:codecov]
skip_install = true
passenv = TOXENV CI CODECOV_*
deps = codecov>=1.4.0
commands = codecov -e TOXENV
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage html
coverage report --fail-under=85
[testenv:mypy]
deps =
mypy @ git+git://github.com/python/mypy.git
skip_install = false
commands =
pip install -U .
mypy --pretty --show-error-context --ignore-missing-imports ./src/alhambra_mixes