-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (40 loc) · 1.01 KB
/
Makefile
File metadata and controls
48 lines (40 loc) · 1.01 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
.PHONY: help install test lint typecheck format clean
# Default target
help:
@echo "jre-addr-parse - US Address Parser"
@echo ""
@echo "Setup:"
@echo " make install Install the package locally"
@echo " make install-dev Install with dev dependencies"
@echo ""
@echo "Development:"
@echo " make test Run tests"
@echo " make lint Run ruff linter"
@echo " make typecheck Run mypy type checker"
@echo " make format Format code with ruff"
@echo ""
@echo "Cleanup:"
@echo " make clean Remove build artifacts"
# Install the package
install:
pip install .
# Install with dev dependencies
install-dev:
uv sync
# Run tests
test:
uv run pytest
# Run linter
lint:
uv run ruff check src/
# Run type checker
typecheck:
uv run mypy src/
# Format code
format:
uv run ruff format src/
# Clean up
clean:
rm -rf dist/ build/ *.egg-info src/*.egg-info
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete 2>/dev/null || true