-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtox.ini
More file actions
29 lines (24 loc) · 805 Bytes
/
tox.ini
File metadata and controls
29 lines (24 loc) · 805 Bytes
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
[tox]
envlist = black, ruff, spdx-schema, cdx-schema
[testenv]
basepython = python3.13
skip_install = true
deps = --no-deps -r requirements/dev-requirements.txt
[testenv:black]
commands = black --check .
[testenv:ruff]
commands = ruff check .
[testenv:spdx-schema]
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]
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'