forked from tensorflow/graphics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
84 lines (79 loc) · 2.11 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[tox]
# Defines test environments for Python 2.7 and 3.6 with TensorFlow CPU and
# GPU, and also flake8 style guide enforcement.
envlist = py{27,35,36}-tf{CPU,GPU,NightlyCPU,NightlyGPU}, flake8
[testenv]
pip_version = pip
install_command = pip install -U {opts} {packages}
deps =
tfCPU: .[tf] # TensorFlow CPU package defined in setup.py.
tfGPU: .[tf-gpu] # TensorFlow GPU package defined in setup.py.
tfNightlyCPU: .[tf-nightly] # tf-nightly CPU package defined in setup.py.
tfNightlyGPU: .[tf-nightly-gpu] # tf-nightly GPU package defined in setup.py.
.[test] # Test packaged in setup.py.
whitelist_externals =
apt-get
coverage
pip
sudo
commands =
sudo apt-get -y install libopenexr-dev
pip install -U OpenEXR
coverage run --source tensorflow_graphics -m py.test {posargs}
[testenv:flake8]
pip_version = pip
install_command = pip install -U {opts} {packages}
deps = flake8
whitelist_externals = flake8
commands = flake8 ./tensorflow_graphics/
[travis]
python =
2.7: py27
3.5: py35
3.6: py36, flake8
[pytest]
addopts = --verbose
python_files = *_test.py
testpaths = ./tensorflow_graphics/
[flake8]
inline-quotes = double
max-line-length = 88
max-complexity = 10
exclude = .git,
.tox,
.pytest_cache,
__pycache__
ignore = C901,
E101,
E111,
E114,
E121,
E125,
E126,
E129,
E221,
E265,
E271,
E305,
E306,
E501,
E502,
E731,
E741,
F401,
W191,
W503,
W504,