This guide will help you set up the development environment and start working with the Centaur template.
No installation required! Just open the repository in Codespaces and everything will be set up automatically.
Install the following tools:
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Install fuzzing tools
cargo install cargo-fuzz honggfuzz
# Install Python tools
pip install pre-commit mkdocs mkdocs-material mkdocstrings[python]
cd python
# Install dependencies
uv sync --all-extras
# Verify installation
uv run pytest --version
uv run python --version
cd rust
# Build project
cargo build
# Verify installation
cargo --version
rustc --version
# Create a new summary file
date=$(date +%Y%m%d)
touch Summary/summary${date}.md
Update this file throughout the day with progress, issues, and learnings.
Follow the 6-stage development workflow:
=== “Python” ```bash # Run all tests uv run pytest
# Run with coverage
uv run pytest --cov
# Run specific test file
uv run pytest tests/unit/test_calculator.py -v
```
=== “Rust” ```bash # Run all tests cargo test
# Run with output
cargo test -- --nocapture
# Run specific test
cargo test test_add
```
Pre-commit hooks will run automatically, but you can run manually:
=== “Python”
bash
uv run black src tests
uv run ruff check --fix src tests
uv run mypy src
=== “Rust”
bash
cargo fmt
cargo clippy -- -D warnings
git add .
git commit -m "Descriptive commit message
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>"
Pre-commit hooks will run and may modify files. Review changes and commit again if needed.
# Update Claude.md with new patterns/practices
# Update summary file with progress
# Serve docs locally to preview
mkdocs serve
The devcontainer automatically installs:
Python interpreter: .venv/bin/python (automatically detected)
Rust analyzer: Configured with clippy checks
cd python
uv sync
cargo install cargo-fuzz honggfuzz wasm-pack
pre-commit install
pre-commit run --all-files
Press F1 → “Dev Containers: Rebuild Container”