-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (39 loc) · 1.62 KB
/
Makefile
File metadata and controls
46 lines (39 loc) · 1.62 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
.DEFAULT_GOAL := help
help: ## ⁉️ Displays this help message
@echo "Usage: make [target]"
@echo ""
@echo "Available targets:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " %-20s %s\n", $$1, $$2}'
test-unit: ## 🧪 Runs unit tests with coverage
@echo "🧪 Running unit tests with coverage..."
uv run pytest tests/unit/ --cov=src/promptdrifter -v
@echo "✅ Unit tests finished."
test-integration: ## 🔗 Runs integration tests
@echo "🔗 Running integration tests..."
uv run pytest tests/integration/ -v
@echo "✅ Integration tests finished."
lint: ## ✨ Runs linter (ruff check)
@echo "✨ Running linter..."
uv run ruff check .
@echo "👍 Linting finished."
lint-fix: ## 🪄 Runs linter with auto-fix (ruff check --fix)
@echo "🪄 Running linter with auto-fix..."
uv run ruff check --fix .
@echo "🎉 Linting and fixing finished."
version-bump: ## 📦 Bump version (usage: make version-bump VERSION=0.0.3)
@if [ -z "$(VERSION)" ]; then \
echo "❌ Error: VERSION parameter is required"; \
echo "Usage: make version-bump VERSION=0.0.3"; \
exit 1; \
fi
@echo "📦 Bumping version to $(VERSION)..."
@sed -i '' 's/version = "[0-9]*\.[0-9]*\.[0-9]*"/version = "$(VERSION)"/' pyproject.toml
@sed -i '' 's/return "[0-9]*\.[0-9]*\.[0-9]*"/return "$(VERSION)"/' src/promptdrifter/cli.py
@echo "🔄 Updating uv lock file..."
@uv lock
@echo "✅ Version bumped to $(VERSION)"
@echo "📝 Updated files:"
@echo " - pyproject.toml"
@echo " - src/promptdrifter/cli.py"
@echo " - uv.lock"
.PHONY: test-unit test-integration test-all lint lint-fix version-bump help