File size: 576 Bytes
942050b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
.PHONY: install install-ui lint format type test all serve ui clean

install:
	uv sync --extra dev

install-ui:
	uv sync --extra dev --extra ui

lint:
	uv run ruff check src tests scripts app

format:
	uv run ruff format src tests scripts app

type:
	uv run mypy src

test:
	uv run pytest

all: lint format type test

serve:
	uv run uvicorn nl_sql.api.main:app --reload --port 8000

ui:
	uv run streamlit run app/streamlit_app.py

clean:
	rm -rf .pytest_cache .mypy_cache .ruff_cache .coverage htmlcov dist build *.egg-info
	find . -type d -name __pycache__ -exec rm -rf {} +