-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
90 lines (68 loc) · 1.5 KB
/
justfile
File metadata and controls
90 lines (68 loc) · 1.5 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# List available commands
default:
@just --list
# Run all tests
test:
uv run pytest
# Run unit tests only
test-unit:
uv run pytest tests/unit
# Run integration tests only
test-integration:
uv run pytest tests/integration
# Run tests with coverage
test-coverage:
uv run pytest --cov=project --cov-report=html --cov-report=term
# Run all code quality checks (lint, type-check, test)
check: lint type-check test
# Lint code
lint:
uv run ruff check .
# Fix linting issues
lint-fix:
uv run ruff check . --fix
# Format code
format:
uv run ruff format .
# Type check
type-check:
uv run ty check
# Run pre-commit hooks
pre-commit:
pre-commit run --all-files
# Install pre-commit hooks
pre-commit-install:
pre-commit install
# Install dependencies
install:
uv sync --dev
# Install dependencies without dev group
install-prod:
uv sync
# Clean build artifacts and caches
clean:
rm -rf .pytest_cache .ruff_cache .coverage htmlcov dist build
find . -type d -name __pycache__ -exec rm -rf {} +
# Check licenses
license-check:
uv run licensecheck
# Run the project
run:
uv run project
# Build Docker image
docker-build:
docker build -t project .
# Run Docker container
docker-run:
docker run project
# Build and run Docker
docker: docker-build docker-run
# Build documentation
docs-build:
uv run mkdocs build
# Serve documentation locally with auto-reload
docs-serve:
uv run mkdocs serve
# Clean generated documentation
docs-clean:
rm -rf site/