This repository was archived by the owner on Jun 2, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (50 loc) · 1.7 KB
/
Makefile
File metadata and controls
64 lines (50 loc) · 1.7 KB
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
54
55
56
57
58
59
60
61
62
63
64
lint:
uv run ruff format
uv run ruff check --fix
lint-check:
uv run ruff format --diff
uv run ruff check
sync:
uv sync --dev --all-extras
.venv39: export VIRTUAL_ENV=.venv39
.venv39:
uv sync --dev --all-extras --python 3.9 --active
test39: .venv39
test39: export VIRTUAL_ENV=.venv39
test39:
uv run --active pytest --cov
test39-e2e: .venv39
test39-e2e: export VIRTUAL_ENV=.venv39
test39-e2e: export DD_INTEGRATION_TESTS=1
test39-e2e:
uv run --active pytest tests/integration/test_e2e.py
test:
if [ -n "$(GITHUB_RUN_ID)" ]; then \
uv run pytest --cov --cov-report=xml --junitxml=junit.xml -o junit_family=legacy; \
else \
uv run pytest --cov; \
fi
test-e2e: export DD_INTEGRATION_TESTS=1
test-e2e:
uv run pytest tests/integration
testpub:
rm -rf dist packages/cli/dist
uv run pyproject-build
uv run pyproject-build packages/cli
uv run twine upload --repository testpypi dist/* packages/cli/dist/*
schema:
uv run ./support/openapi/fetch_openapi.py --output ./support/openapi/openapi-new.json
uv run ./support/openapi/openapi_changelog.py ./support/openapi/openapi.json ./support/openapi/openapi-new.json
mv ./support/openapi/openapi-new.json ./support/openapi/openapi.json
templates:
./support/api_generation/dump_templates.sh
# random generated file as target, just for timestamp
defectdojo_api_generated/configuration.py: support/api_generation/custom_templates/* support/openapi/openapi.json
./support/api_generation/generate.sh
$(MAKE) lint
generate: defectdojo_api_generated/configuration.py
schema-mr: schema generate
schema-mr:
echo "Updated, now create and push branch update/schema-$(shell cat ./support/openapi/openapi.json | jq -r .info.version)"
test-docs: generate
uv run mkdocs serve