-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
52 lines (39 loc) · 1.17 KB
/
justfile
File metadata and controls
52 lines (39 loc) · 1.17 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
47
48
49
50
51
52
# Klaw Development Tasks
# Run with `just <recipe-name>`
# Documentation tasks
docs-install:
uv sync --project docs-build
docs-serve:
uv run --project docs-build mkdocs serve --dev-addr 127.0.0.1:8000 || \
uv run --project docs-build mkdocs serve --dev-addr 127.0.0.1:8001 || \
uv run --project docs-build mkdocs serve --dev-addr 127.0.0.1:8002 || \
uv run --project docs-build mkdocs serve --dev-addr 127.0.0.1:8003
docs-build:
uv run --project docs-build mkdocs build
docs-clean:
rm -rf site/
docs-deploy:
uv run --project docs-build mkdocs gh-deploy --clean --force
# Development tasks
lint:
uv run ruff check .
format:
uv run ruff format .
type-check:
uv run mypy .
test:
uv run pytest
# Combined tasks
check: lint type-check test
# Workspace management
sync:
uv sync
# Clean all caches
clean-all: docs-clean
rm -rf .ruff_cache .mypy_cache .pytest_cache
find . -name "__pycache__" -type d -exec rm -rf {} +
find . -name "*.pyc" -delete
# Setup development environment
setup: sync docs-install
@echo "Development environment setup complete!"
@echo "Run 'just docs-serve' to start the documentation server"