-
Notifications
You must be signed in to change notification settings - Fork 36
/
tox.ini
55 lines (48 loc) · 1.35 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
[tox]
envlist = {py37,py38,py39,py310,py311}-{pandas,none,numba,pandas-numba},pypy3,black,mypy,report
[tool:pytest]
testpath = tests
[testenv]
setenv =
py{37,38,39,310,311}-{pandas,none,numba},pypy3: COVERAGE_FILE = .coverage.{envname}
commands =
pytest --cov --cov-report=xml --cov-report=term-missing {posargs:-vv}
deps =
numpy
pytest
pytest-cov
!pypy3-pandas: pandas
!pypy3-numba: numba
depends =
{py37,py38,py39,py311}-{pandas,none,numba,pandas-numba},pypy3: clean
codecov: {py37,py38,py39,py311}-{pandas,none,numba,pandas-numba},pypy3
report: {py37,py38,py39,py311}-{pandas,none,numba,pandas-numba},pypy3
[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
skip_install = true
commands =
mypy --pretty --show-error-context --ignore-missing-imports --strict .