-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (18 loc) · 792 Bytes
/
Makefile
File metadata and controls
22 lines (18 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: install lint-fix pre-commit clean
install:
uv sync --all-groups
uv run pre-commit install
lint-fix:
find src -name "*.py" -type f -exec uv run pyupgrade --py311-plus {} + || true
uv run autoflake --recursive --remove-all-unused-imports --remove-unused-variables --in-place src
uv run isort src --profile black
uv run black src
uv run mypy src --check-untyped-defs
pre-commit:
uv run pre-commit run --all-files
clean:
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name ".pytest_cache" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name ".mypy_cache" -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete 2>/dev/null || true