-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (20 loc) · 688 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (20 loc) · 688 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
.PHONY: build check format-check lint schema-check schemas test type version-check
check: format-check lint type schema-check version-check test build
format-check:
uv lock --check
uv run --locked ruff format --check .
lint:
uv run --locked ruff check .
type:
uv run --locked mypy src
schemas:
uv run --locked python scripts/generate_schemas.py
schema-check:
uv run --locked python scripts/generate_schemas.py --check
version-check:
uv run --locked python scripts/check_version.py
test:
uv run --locked pytest --cov=tracefetch --cov-report=term --cov-fail-under=80
build:
uv build
@if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then git diff --check -- .; fi