-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (28 loc) · 1.03 KB
/
Makefile
File metadata and controls
41 lines (28 loc) · 1.03 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
# Makefile for taskmark
.PHONY: help install dev test lint format typecheck check security clean
.DEFAULT_GOAL := help
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'
install: ## Install package
uv sync --no-dev
dev: ## Install with dev dependencies
uv sync
uv run pre-commit install
test: ## Run tests
uv run pytest
test-fast: ## Run tests without coverage
uv run pytest --no-cov -q
lint: ## Run linter
uv run ruff check src tests
lint-fix: ## Fix lint issues
uv run ruff check --fix src tests
format: ## Format code
uv run ruff format src tests
typecheck: ## Run type checker
uv run mypy src
security: ## Run security scan
uv run bandit -c pyproject.toml -r src
check: lint typecheck security ## Run all checks
clean: ## Remove build artifacts
rm -rf build/ dist/ *.egg-info htmlcov/ .pytest_cache/ .mypy_cache/ .ruff_cache/ .coverage coverage.xml
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true