-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
28 lines (24 loc) · 872 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
[tox]
envlist = black, ruff, spdx-schema, cdx-schema
[testenv:black]
deps = -r requirements/dev-requirements.txt
commands = black --check .
[testenv:ruff]
deps = -r requirements/dev-requirements.txt
commands = ruff check .
[testenv:spdx-schema]
deps = -r requirements/dev-requirements.txt
allowlist_externals = bash
commands =
bash -c 'find {tox_root}/sbom/examples/ -name "*.spdx.json" -type f | while read -r example; do \
echo "$example"; \
check-jsonschema --schemafile sbom/spdx-2.3-schema.json "$example"; \
done'
[testenv:cdx-schema]
deps = -r requirements/dev-requirements.txt
allowlist_externals = bash
commands =
bash -c 'find {tox_root}/sbom/examples/ -name "*.cdx.json" -type f | while read -r example; do \
echo "$example"; \
check-jsonschema --schemafile sbom/cyclonedx-1.6.schema.json "$example"; \
done'