-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 755 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 755 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
.PHONY: install lint fmt test clean check help
help:
@echo "Available commands:"
@echo " make install Install dependencies"
@echo " make lint Check code quality"
@echo " make fmt Format code"
@echo " make test Run tests"
@echo " make check Run checks (lint + type)"
@echo " make clean Remove build artifacts"
install:
uv sync
lint:
uv run ruff check ynab_import tests
fmt:
uv run ruff format ynab_import tests
uv run ruff check ynab_import tests --fix
test:
uv run pytest tests/ -v
check: lint
uv run mypy ynab_import
clean:
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete
rm -rf .pytest_cache .coverage htmlcov dist build *.egg-info