-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (48 loc) · 1.58 KB
/
Makefile
File metadata and controls
66 lines (48 loc) · 1.58 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
.PHONY: help install dev-install format lint type-check test test-cov security clean all
help: ## Show this help message
@echo "Available commands:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
install: ## Install production dependencies
uv sync
dev-install: ## Install development dependencies
uv sync --all-extras
format: ## Format code with ruff
ruff format src/ tests/
ruff check --fix src/ tests/
lint: ## Lint code with ruff
ruff check src/ tests/
type-check: ## Run type checking with mypy and pyright
mypy src/
pyright src/
security: ## Run security checks with bandit
bandit -r src/
test: ## Run tests
pytest tests/ -v
test-cov: ## Run tests with coverage
pytest tests/ --cov=src/uacs --cov-report=term-missing --cov-report=html
test-parallel: ## Run tests in parallel
pytest tests/ -n auto
test-watch: ## Run tests in watch mode
pytest-watch
all: format lint type-check security test ## Run all checks
clean: ## Clean build artifacts and caches
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf htmlcov/
rm -rf .coverage
rm -rf .pytest_cache/
rm -rf .mypy_cache/
rm -rf .ruff_cache/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
build: ## Build package
uv build
publish-test: ## Publish to TestPyPI
uv publish --repository testpypi
publish: ## Publish to PyPI
uv publish
pre-commit-install: ## Install pre-commit hooks
pre-commit install
pre-commit-run: ## Run pre-commit on all files
pre-commit run --all-files