-
Notifications
You must be signed in to change notification settings - Fork 38
/
tox.ini
75 lines (66 loc) · 1.12 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
[tox]
envlist = py39,py310,flake8,cpplint
skip_missing_interpreters = False
[flake8]
max-line-length = 120
exclude =
build/
src/pipemode_op
.git
__pycache__
.tox
benchmarking/
test/
venv/
max-complexity = 10
ignore =
D100,
FI10,
FI12,
FI13,
FI14,
FI15,
FI16,
FI17,
FI18,
FI50,
FI51,
FI52,
FI53,
FI54,
FI55,
FI56,
FI57
[testenv]
passenv =
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
AWS_DEFAULT_REGION
commands =
python -m pytest {posargs}
deps =
pytest==6.2.5
pytest-xdist==2.3.0
mock==4.0.3
contextlib2==21.6.0
tensorflow==2.14.0
awslogs==0.14.0
docker==6.1.0
cmake==3.21.2
[testenv:flake8]
basepython = python3.10
deps =
cmake==3.21.2
flake8==3.9.2
flake8-future-import==0.4.6
tensorflow==2.14.0
commands = flake8
[testenv:cpplint]
commands =
cpplint --linelength=120 --filter=-build/c++11 --extensions=cpp,hpp --quiet --recursive src/
deps =
cmake==3.21.2
tensorflow==2.14.0
cpplint==1.5.5