-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (37 loc) · 1.1 KB
/
Makefile
File metadata and controls
46 lines (37 loc) · 1.1 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
.PHONY: lint format test check all clean ui help
# Default target
help:
@echo "Available commands:"
@echo " make lint - Run ruff linter"
@echo " make format - Auto-format code with ruff"
@echo " make test - Run unit tests (mocked, no API keys)"
@echo " make check - Run lint + format check (CI equivalent)"
@echo " make all - Run check + test"
@echo " make ui - Start Streamlit UI"
@echo " make clean - Remove cache and build artifacts"
# Linting
lint:
poetry run ruff check .
# Auto-format code
format:
poetry run ruff format .
# Run unit tests (mocked only)
test:
poetry run pytest tests/ -v --tb=short -m "not requires_api"
# Run all tests including integration (requires API keys)
test-all:
poetry run pytest tests/ -v --tb=short
# CI-equivalent check (lint + format check)
check: lint
poetry run ruff format --check .
# Run everything
all: check test
# Start Streamlit UI
ui:
poetry run streamlit run ui/app.py
# Clean up
clean:
rm -rf __pycache__ */__pycache__ */*/__pycache__
rm -rf .pytest_cache .ruff_cache
rm -rf *.egg-info dist build
rm -rf .coverage htmlcov