forked from MinishLab/semble
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 686 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (26 loc) · 686 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
.PHONY: help install test lint typecheck fix pre-commit
help:
@echo "Available targets:"
@echo " install Install all dependencies"
@echo " test Run tests"
@echo " lint Run ruff linter"
@echo " typecheck Run mypy"
@echo " fix Auto-fix lint issues"
@echo " pre-commit Run all pre-commit hooks"
install:
uv sync --all-extras
uv run pre-commit install
test:
uv run pytest
test-no-git:
uv run pytest --ignore=tests/test_git.py
lint:
uv run ruff check src/ tests/
uv run pydoclint src/
typecheck:
uv run mypy src/
fix:
uv run ruff check --fix src/ tests/
uv run ruff format src/ tests/
pre-commit:
uv run pre-commit run --all-files