forked from Yelp/venv-update
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (42 loc) · 1.2 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
[tox]
# These should match the travis env list
envlist = py27,py36,pypy,lint
skipsdist=True
[testenv]
# `changedir` ensures we run against the installed, rather than the working directory:
passenv =
# For codecov
CI TOXENV TRAVIS TRAVIS_*
PYTEST_OPTIONS
changedir =
{envtmpdir}
setenv =
TOP={toxinidir}
SITEPACKAGES={envsitepackagesdir}
venv_update =
pip install {toxinidir} # this is only because we're using an un-released version of venv-update
{toxinidir}/venv_update.py \
venv= {envdir} \
install=
commands =
{[testenv]venv_update} -r {toxinidir}/requirements.d/test.txt {toxinidir}
pip-faster freeze --all
{toxinidir}/test {posargs}
[testenv:latest-pip]
commands =
sed -i 's/,<=18.1//g' {toxinidir}/setup.py {toxinidir}/requirements.d/import_tests.txt
pip install git+git://github.com/pypa/pip
{[testenv]commands}
[testenv:lint]
commands =
{[testenv]venv_update} -r {toxinidir}/requirements.d/lint.txt
pre-commit run --all-files
[testenv:docs]
deps = -rrequirements.d/docs.txt
changedir = docs
commands = sphinx-build -b html -d build/doctrees source build/html
[pep8]
ignore=E265,E266,W504
[flake8]
max-line-length=131
max-complexity=12