-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (29 loc) · 1.05 KB
/
Makefile
File metadata and controls
40 lines (29 loc) · 1.05 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
.PHONY: help init lint fmt test test-coverage
help:
@echo "Available commands:"
@echo " make init - Install dependencies"
@echo " make lint - Lint and fix code"
@echo " make fmt - Format code"
@echo " make test - Run tests"
@echo " make test-coverage - Run tests and generate coverage report"
init:
uv sync
lint:
uvx ruff check --fix --config ruff.toml
fmt:
uvx ruff format --config ruff.toml
test:
uv run pytest --capture=tee-sys --junitxml=pytest.xml
test-coverage:
uv run pytest --cov=. --cov-report=xml
test-all: test test-coverage
update-api-spec-submodule:
git submodule update --init --recursive
build-openapi-yaml: update-api-spec-submodule
cd api-spec && make merge-all
openapi-update-python-client: post-openapi-update build-openapi-yaml
@echo "Generating Python client from OpenAPI definition..."
openapi-generator-cli generate -i api-spec/openapi.yaml -g python -o . -c .openapi-generator/config.yaml
post-openapi-update: openapi-update-python-client
@echo "Running post-update tasks..."
./scripts/move_model_docs.sh