forked from nmstate/nmstate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
53 lines (47 loc) · 975 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
[tox]
envlist = black, flake8, yamllint
skip_missing_interpreters = True
[testenv]
changedir = {toxinidir}/tests
deps =
-r{toxinidir}/rust/src/python/requirements.txt
pytest==5.3.1
[testenv:black]
skip_install = true
basepython = python3
changedir = {toxinidir}
deps =
black==22.6.0
# style configured via pyproject.toml
commands =
black \
--check \
--diff \
{posargs} \
rust/src/python/setup.py \
rust/src/python/libnmstate \
tests/integration
[testenv:flake8]
basepython = python3
skip_install = true
changedir = {toxinidir}
deps =
flake8==5.0.4
commands =
flake8 \
--statistics {posargs} \
rust/src/python/setup.py \
rust/src/python/libnmstate \
tests/integration
[testenv:yamllint]
basepython = python3
skip_install = true
changedir = {toxinidir}
deps =
yamllint==1.27.1
commands =
yamllint examples/
[pytest]
addopts = -rxs
[flake8]
show_source = True