-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (33 loc) · 816 Bytes
/
Makefile
File metadata and controls
43 lines (33 loc) · 816 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
42
43
.PHONY: setup install dotagents-install lint format typecheck test hooks clean
# Set up development environment
setup: install hooks
# Install dependencies
install:
uv sync --all-groups
$(MAKE) dotagents-install
# Install/update dotagents configuration
dotagents-install:
npx --yes @sentry/dotagents install
# Install prek hooks
hooks:
prek install
# Run all linters and formatters
lint:
uv run ruff check --fix .
uv run ruff format .
# Format only (no lint fixes)
format:
uv run ruff format .
# Type check
typecheck:
uv run ty check
# Run tests
test:
uv run pytest tests/ -v
# Run prek on all files
check:
prek run --all-files
# Clean up build artifacts
clean:
rm -rf .pytest_cache .coverage htmlcov dist build *.egg-info
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true