forked from pycontribs/jira
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
62 lines (57 loc) · 1.29 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
56
57
58
59
60
61
62
[tox]
minversion = 3.2.1
envlist = lint,py27,py37,py36,py35,py34,docs
skip_missing_interpreters = true
# workaround for https://github.com/tox-dev/tox/issues/149
# require =
# tox-pip-extensions>=1.4.2
# tox_pip_extensions_ext_venv_update = true
# ^ disabled due to https://github.com/Yelp/venv-update/pull/215
[testenv:docs]
basepython=python
changedir=docs
deps =
-rrequirements.txt
-rdocs/requirements-rtd.txt
commands=
bash -c 'cd {toxinidir}/docs && make html'
[testenv]
usedevelop = True
# avoid using deps= due to https://github.com/tox-dev/tox/issues/149
# hide deps from stdout https://github.com/tox-dev/tox/issues/601
list_dependencies_command=echo
deps =
-rrequirements.txt
-rrequirements-dev.txt
extras =
cli
opt
sitepackages=False
commands=
bash -c 'find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf'
python -m pip check
python -m pytest {posargs}
setenv =
PIP_LOG={envdir}/pip.log
PIP_DISABLE_PIP_VERSION_CHECK=1
passenv =
CI
CI_JIRA_*
PIP_*
TRAVIS
TRAVIS_*
XDG_CACHE_HOME
envars =
PIP_DISABLE_PIP_VERSION_CHECK=1
PIP_USER=no
whitelist_externals =
bash
echo
find
grep
rm
xargs
[testenv:lint]
commands=
bash -c "npm install && npm run spell"
python -m pre_commit run --all