-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
32 lines (25 loc) · 675 Bytes
/
Copy pathJustfile
File metadata and controls
32 lines (25 loc) · 675 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
set shell := ["bash", "-c"]
# Show all available recipes
default:
@just --list
# Initialize the project (run once after cloning)
setup name="my_app":
./init_project.sh {{name}}
# Run the development server
dev:
uv run uvicorn src.$(grep 'name =' pyproject.toml | head -n1 | cut -d'"' -f2 | tr '-' '_').main:app --reload
# Run tests
test:
uv run pytest
# Check code style
lint:
uv run ruff check .
uv run black --check .
# Auto-format code
format:
uv run ruff check --fix .
uv run black .
# Clean up artifacts
clean:
rm -rf .venv uv.lock .pytest_cache .ruff_cache __pycache__
find . -type d -name "__pycache__" -exec rm -rf {} +