forked from matplotlib/pytest-mpl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
40 lines (38 loc) · 935 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
[tox]
envlist =
py{36,37,38}-test
codestyle
requires =
setuptools >= 30.3.0
pip >= 19.3.1
[testenv]
passenv = DISPLAY WINDIR
setenv =
MPLBACKEND = Agg
changedir = .tmp/{envname}
description = run tests
deps =
mpl15: matplotlib==1.5.*
mpl15: nose
mpl20: matplotlib==2.0.*
mpl20: nose
mpl21: matplotlib==2.1.*
mpl22: matplotlib==2.2.*
mpl30: matplotlib==3.0.*
mpl31: matplotlib==3.1.*
mpldev: git+https://github.com/matplotlib/matplotlib.git#egg=matplotlib
extras =
test
commands =
pip freeze
# Make sure the tests pass with and without --mpl
pytest '{toxinidir}' {posargs}
pytest '{toxinidir}' --mpl --cov pytest_mpl {posargs}
[testenv:codestyle]
skip_install = true
changedir = .
description = check code style, e.g. with flake8
deps = flake8
commands =
flake8 pytest_mpl tests --count --max-line-length=100
python setup.py check --restructuredtext