-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
49 lines (36 loc) · 841 Bytes
/
justfile
File metadata and controls
49 lines (36 loc) · 841 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
39
40
41
42
43
44
45
46
47
48
49
# sprint-dash justfile
set dotenv-load
default_host := "0.0.0.0"
default_port := "8080"
# List available recipes
default:
@just --list
# Install dependencies
install:
uv sync
# Run dev server with hot reload
serve host=default_host port=default_port:
uv run uvicorn app.main:app --host {{host}} --port {{port}} --reload
# Run linter
lint:
uv run ruff check app/
# Run linter with auto-fix
lint-fix:
uv run ruff check app/ --fix
# Run formatter
fmt:
uv run ruff format app/
# Check formatting without changes
fmt-check:
uv run ruff format app/ --check
# Run type checker
typecheck:
uv run mypy app/
# Run tests
test *args:
uv run pytest {{args}}
# Run tests with coverage
cov *args:
uv run pytest --cov {{args}}
# Run all quality checks (lint, typecheck, tests)
check: lint typecheck test