-
Notifications
You must be signed in to change notification settings - Fork 14
/
tox.ini
50 lines (43 loc) · 911 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
[tox]
envlist = flake8,black,isort,test,yamllint
[flake8]
ignore = E731,W504,W503
max-line-length = 160
exclude =
./.tox
./.git
./.env
./.direnv
[isort]
profile = black
[testenv:flake8]
basepython = python3
skip_install = true
deps = flake8
commands = flake8 {posargs}
[testenv:black]
skip_install = true
deps = black
commands = black --check --diff {posargs:src/}
[testenv:black-format]
# this step format code automatically based on black rules
# it can be triggered manually
skip_install = true
deps = black
commands = black {posargs:src/}
[testenv:isort]
skip_install = true
deps = isort
commands = isort --check --diff {posargs:.}
[testenv:yamllint]
skip_install = true
deps = yamllint
commands = yamllint -s -f colored {posargs:config/}
[testenv:test]
skip_install = true
deps =
pytest
mock
-r tools/release/dependencies/requirements.txt
commands =
pytest {posargs}