forked from redhat-openshift-ecosystem/operator-pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
36 lines (29 loc) · 781 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
[vars]
OPERATOR_MODULE = operator-pipeline-images/operatorcert
[tox]
envlist = test,
black,
yamllint,
skipsdist = True
[testenv]
extras = dev
[testenv:test]
deps = -r operator-pipeline-images/requirements-dev.txt
-r operator-pipeline-images/requirements.txt
commands = pytest -v \
--cov {[vars]OPERATOR_MODULE} \
--cov-report term-missing \
--cov-fail-under 100
[testenv:black]
deps = -r operator-pipeline-images/requirements-dev.txt
commands = black --check --diff .
[testenv:black-format]
deps = -r operator-pipeline-images/requirements-dev.txt
commands = black .
[testenv:yamllint]
basepython = python3
deps = -r operator-pipeline-images/requirements-dev.txt
files =
.
commands =
yamllint {[testenv:yamllint]files}