-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathjustfile
More file actions
51 lines (39 loc) · 1.09 KB
/
justfile
File metadata and controls
51 lines (39 loc) · 1.09 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
# List available commands
default:
@just --list
# Install project dependencies
install:
uv sync
# Run tests
test:
uv run pytest tests/ -v
# Run tests with coverage
test-cov:
uv run pytest tests/ --cov=. --cov-report=html --cov-report=term
# Generate a test project with default settings
generate-test:
cookiecutter . --no-input project_name="Test Project"
# Generate a test project with Beanie database
generate-test-beanie:
cookiecutter . --no-input project_name="Test Beanie Project" database="Beanie"
# Clean up generated test projects
clean:
rm -rf test_project test_beanie_project
# Run pre-commit hooks on all files
lint:
uv run pre-commit run --all-files
# Install pre-commit hooks
setup-hooks:
uv run pre-commit install
# Build documentation
docs-build:
cd docs && uv run make html
# Serve documentation locally
docs-serve:
cd docs && uv run python -m http.server --directory _build/html 8000
# Run a quick validation (install, test, lint)
validate: install test lint
# Format code with black and isort
format:
uv run black .
uv run isort .