-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
53 lines (47 loc) · 1.21 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 = py310,report#,mypy#,black,mypy,report
isolated_build = True
[testenv]
setenv =
py310-{pandas,none,numba}: COVERAGE_FILE = .coverage.{envname}
commands =
pytest --cov alhambra --cov-report=xml {posargs:-vv}
deps =
pytest
pytest-cov
pandas
depends =
py310-{pandas,none,numba,pandas-numba}: clean
codecov: py310-{pandas,none,numba,pandas-numba}
report: py310-{pandas,none,numba,pandas-numba}
[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