-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
73 lines (58 loc) · 1.65 KB
/
Makefile
File metadata and controls
73 lines (58 loc) · 1.65 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
65
66
67
68
69
70
71
72
73
.PHONY: help install format format-check lint lint-fix test test-unit test-integration ci docs-serve docs-build build clean run
# Default target
help:
@echo "gh-worker Makefile"
@echo ""
@echo "Development:"
@echo " install Install/sync dependencies (uv sync)"
@echo " format Format code with ruff"
@echo " format-check Check formatting (CI)"
@echo " lint Run ruff check"
@echo " lint-fix Run ruff check with --fix"
@echo " test Run all tests"
@echo " test-unit Run unit tests only"
@echo " test-integration Run integration tests only"
@echo " ci Run full CI (lint + format-check + test)"
@echo ""
@echo "Documentation:"
@echo " docs-serve Serve docs locally (mkdocs serve)"
@echo " docs-build Build docs static site"
@echo ""
@echo "Build & Run:"
@echo " build Build the package"
@echo " run Run ghw (usage: make run ARGS='issues list')"
@echo ""
@echo "Maintenance:"
@echo " clean Remove caches and build artifacts"
# Development
install:
uv sync --dev
format:
uv run ruff format .
format-check:
uv run ruff format --check .
lint:
uv run ruff check .
lint-fix:
uv run ruff check --fix .
test:
uv run pytest
test-unit:
uv run pytest tests/unit/
test-integration:
uv run pytest tests/integration/
ci: format-check lint test
# Documentation
docs-serve:
uv run mkdocs serve
docs-build:
uv run mkdocs build
# Build & Run
build:
uv build
run:
uv run ghw $(ARGS)
# Maintenance
clean:
rm -rf .pytest_cache .ruff_cache build dist *.egg-info
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true