-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
60 lines (51 loc) · 1023 Bytes
/
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
[tox]
minversion=3.24.0
envlist = py{37,38,39,310}
[testenv:py{37,38,39,310}]
deps =
-r{toxinidir}/requirements.test.txt
install_command =
pip install {opts} {packages}
commands =
pytest {posargs} --cov=./ --cov-report=xml
[black]
deps=
black==22.3.0
[testenv:black]
basepython = python3
skip_install = true
deps = {[black]deps}
commands =
black --check src/ tests/ tools/ examples/
[isort]
profile = black
multi_line_output = 3
[testenv:format]
basepython = python3
skip_install = true
deps=
{[black]deps}
isort==4.3.21
commands =
isort --recursive src/ tests/ tools/ examples/
black src/ tests/ tools/ examples/
[flake8]
max-line-length = 80
select = C,E,F,W,B,B950
ignore = E501, W503
deps =
flake8
flake8-colors
grpcio==1.40.0
[testenv:flake8]
basepython=python3
skip_install = true
deps =
{[flake8]deps}
flake8-bugbear>=21.4.2
pep8-naming
flake8-fixme
flake8-typing-imports>=1.1
flake8-import-order>=0.9
commands =
flake8 {posargs}