forked from googleapis/gax-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
81 lines (72 loc) · 2.23 KB
/
tox.ini
File metadata and controls
81 lines (72 loc) · 2.23 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[tox]
envlist = py27,py34,py35,pep8,pylint-errors,pylint-full,pylint-no-test-deps
[travis]
python =
2.7: py27,pep8,pylint-full,pylint-no-test-deps,docs
3.4: py34,pep8,pylint-full,pylint-no-test-deps
# TODO: add "pep8,pylint-full,pylint-no-test-deps" back to this list once https://github.com/pypa/pip/issues/4216 is fixed
3.5: py35
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/src-gen
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = mkdir
protoc
commands = -mkdir src-gen
-python -m grpc.tools.protoc -Itest --python_out=src-gen test/fixture.proto
-py.test --timeout=30 --cov-report html --cov-report=term --cov {toxinidir}/google/gax
[testenv:pep8]
deps = flake8
commands = flake8 --max-complexity=10 google test --ignore=E501 --exclude=src-gen,gapic
[testenv:pylint-errors]
deps = pylint
-r{toxinidir}/test-requirements.txt
commands = pylint \
-f colorized \
-E \
google test \
--ignore=src-gen,gapic
[testenv:pylint-warnings]
deps = pylint
commands = pylint \
-f colorized \
-d all \
-e W \
-r n \
google test \
--ignore=src-gen,_grpc_google_auth.py,test__grpc_google_auth.py,gapic
[testenv:pylint-no-test-deps]
deps = pylint
commands = pylint \
-f colorized \
-e E,W,R \
-d fixme,locally-disabled \
google \
--ignore=src-gen,_grpc_google_auth.py,test__grpc_google_auth.py,gapic
[testenv:pylint-full]
deps = pylint
-r{toxinidir}/test-requirements.txt
commands = pylint \
-f colorized \
-e E,W,R \
-d fixme,locally-disabled \
google test \
--ignore=src-gen,gapic
[testenv:devenv]
commands =
envdir = {toxworkdir}/develop
basepython = python2.7
usedevelop = True
deps= -r{toxinidir}/test-requirements.txt
[testenv:docs]
basepython = python2.7
commands =
python -c "import shutil; shutil.rmtree('docs/_build', ignore_errors=True)"
python -c "import shutil; shutil.rmtree('docs/generated', ignore_errors=True)"
python -c "import shutil; shutil.rmtree('docs/_static', ignore_errors=True)"
python -c "import os; os.makedirs('docs/_static')"
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html
sphinx-build -b latex -D language=en -d _build/doctrees docs _build/latex
deps =
Sphinx
sphinx_rtd_theme