-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (28 loc) · 736 Bytes
/
Makefile
File metadata and controls
39 lines (28 loc) · 736 Bytes
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
.PHONY: install dev seed test lint format typecheck check coverage docker clean
install:
pip install -e ".[dev]"
dev:
uvicorn entity_resolution.main:app --reload --host 0.0.0.0 --port 8000
seed:
python -m scripts.seed_db
test:
pytest tests/ -v
lint:
ruff check src/ tests/
ruff format --check src/ tests/
format:
ruff check --fix src/ tests/
ruff format src/ tests/
typecheck:
mypy
check: lint typecheck test
coverage:
pytest tests/ -v --cov=entity_resolution --cov-report=term-missing --cov-report=html
docker:
docker compose up --build
clean:
rm -f data/*.db
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
rm -rf .pytest_cache .mypy_cache htmlcov
rm -rf *.egg-info
rm -rf build dist