-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
44 lines (33 loc) · 659 Bytes
/
justfile
File metadata and controls
44 lines (33 loc) · 659 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
# Install dependencies
install:
uv sync
# Run the application
run *ARGS:
uv run python main.py {{ARGS}}
# Format code
format *ARGS:
uv run ruff format {{ARGS}}
# Lint code (use --fix to auto-fix)
lint *ARGS:
uv run ruff check {{ARGS}}
# Type check
typecheck *ARGS:
uvx ty check {{ARGS}}
# Run tests
test *ARGS:
uv run pytest {{ARGS}}
# Run all checks
check: lint typecheck
# Clean up
clean:
-sudo rm -rf .ruff_cache .mypy_cache .pytest_cache __pycache__
# Docker
build-docker:
docker build -t python-template .
run-docker:
docker compose up
stop-docker:
docker compose down
# Show help
help:
just --list