-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathtox.ini
51 lines (40 loc) · 919 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
[tox]
envlist =
black
py{2,3,py2,py3}
skipsdist = True
skip_missing_interpreters = {env:TOX_SKIP_MISSING_INTERPRETERS:True}
[testenv]
basepython =
py2: python2
py27: python2.7
py3: python3
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
pypy2: pypy
pypy3: pypy3
deps =
.[dev]
codecov: codecov
passenv =
# See https://github.com/codecov/codecov-python/blob/5b9d539a6a09bc84501b381b563956295478651a/README.md#using-tox
codecov: TOXENV
codecov: CI
codecov: TRAVIS TRAVIS_*
setenv =
PIP_DISABLE_PIP_VERSION_CHECK=1
VIRTUALENV_NO_DOWNLOAD=1
commands =
!codecov: pytest -v {posargs:tests}
codecov: coverage run --source=src "{envbindir}/pytest" -v {posargs:tests}
codecov: codecov -e TOXENV
[testenv:black]
skip_install = True
basepython =
python3
deps =
black
commands =
black {posargs:--check .}