forked from linkedin/openhouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 835 Bytes
/
Makefile
File metadata and controls
38 lines (29 loc) · 835 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
35
36
37
38
.PHONY: help sync clean lint format format-check check test all
help:
@echo "Available commands:"
@echo " make sync - Sync dependencies using uv"
@echo " make lint - Run ruff linter"
@echo " make format - Format code with ruff"
@echo " make check - Run all checks (lint + format check)"
@echo " make test - Run tests with pytest"
@echo " make all - Run all checks and tests"
@echo " make clean - Clean build artifacts"
sync:
uv sync --all-extras
lint:
uv run ruff check src/ tests/
format:
uv run ruff format src/ tests/
format-check:
uv run ruff format --check src/ tests/
check: lint format-check
test:
uv run pytest
all: check test
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf .venv/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete