-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 995 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (32 loc) · 995 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
30
31
32
33
34
35
36
37
38
39
40
41
.PHONY: help install lint test typecheck build publish clean all
# Default target
help:
@echo "Usage: make <target>"
@echo ""
@echo "Targets:"
@echo " install Install all dependencies (including dev group)"
@echo " lint Run ruff and flake8 linters"
@echo " typecheck Run ty type checker"
@echo " test Run pytest with coverage"
@echo " check Run lint + typecheck + test"
@echo " build Build the distribution packages"
@echo " publish Build and publish to PyPI via uv"
@echo " clean Remove build artifacts"
install:
uv sync --group dev
lint:
uv run ruff check fastapi_profiler test
uv run flake8 fastapi_profiler test
typecheck:
uv run ty check fastapi_profiler
test:
uv run pytest
check: lint typecheck test
build:
uv build
publish: build
uv publish
clean:
rm -rf dist/ build/ *.egg-info .coverage htmlcov/ .pytest_cache/ __pycache__
find . -type d -name "__pycache__" -exec rm -rf {} +
find . -type f -name "*.pyc" -delete