-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (39 loc) · 1.5 KB
/
Makefile
File metadata and controls
49 lines (39 loc) · 1.5 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
# Makefile for the Lex Eval project
.PHONY: install install-dev static-type-check lint lint-check test pr help
# Default target
default: help
install:
@echo "--- 🚀 Installing project dependencies ---"
uv sync
install-dev:
@echo "--- 🚀 Installing development dependencies ---"
uv sync --dev
static-type-check:
@echo "--- 🔍 Running static type check ---"
uv run mypy src
lint:
@echo "--- 🧹 Formatting and linting codebase ---"
uv run ruff format .
uv run ruff check . --fix
lint-check:
@echo "--- 🧐 Checking if project is formatted and linted ---"
uv run ruff format . --check
uv run ruff check .
test:
@echo "--- 🧪 Running tests ---"
uv run pytest src/tests/
pr: static-type-check lint test
@echo "--- ✅ All PR checks passed successfully ---"
@echo "Ready to make a PR!"
help:
@echo "Makefile for the Lex Eval project"
@echo ""
@echo "Available commands:"
@echo " make install Install project dependencies using uv sync"
@echo " make install-dev Install development dependencies"
@echo " make static-type-check Run static type checking with mypy on the src directory"
@echo " make lint Format code with Ruff and apply lint fixes"
@echo " make lint-check Check formatting with Ruff and run lint checks without fixing"
@echo " make test Run tests with pytest"
@echo " make pr Run all pre-PR checks: static-type-check, lint, and test"
@echo " make help Show this help message"