-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (40 loc) · 1.2 KB
/
Makefile
File metadata and controls
50 lines (40 loc) · 1.2 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
49
50
.PHONY: lint typecheck format-check check format install dev clean
# Run ruff linter
lint:
uv run ruff check forestui/
# Run mypy type checker
typecheck:
uv run mypy forestui/
# Check formatting without modifying files
format-check:
uv run ruff format --check forestui/
# Run all checks (lint + typecheck + format)
check: lint typecheck format-check
# Format code with ruff
format:
uv run ruff format forestui/
uv run ruff check --fix forestui/
# Install the package locally
install:
uv pip install -e .
# Install with dev dependencies
dev:
uv sync --group dev
# Clean build artifacts
clean:
rm -rf build/ dist/ *.egg-info/ .mypy_cache/ .ruff_cache/
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
# Run the app
run:
uv run forestui
# Show help
help:
@echo "Available targets:"
@echo " make lint - Run ruff linter"
@echo " make typecheck - Run mypy type checker"
@echo " make check - Run all checks (lint + typecheck)"
@echo " make format - Format code with ruff"
@echo " make install - Install package locally"
@echo " make dev - Install with dev dependencies"
@echo " make clean - Clean build artifacts"
@echo " make run - Run the app"