Create a New Repository from This Template
This guide explains how to create your own repository from this template and complete first-time bootstrap.
Prerequisites
- GitHub account with permission to create repositories
- Git installed locally
- Docker installed and running
- Visual Studio Code
- VS Code Dev Containers extension
- Mise
- uv
Create Your Repository
- Open the template repository on GitHub.
- Select Use this template.
- Choose an owner and repository name.
- Select visibility (public or private).
- Create the repository.
Clone and Enter the Project
git clone https://github.com/YOUR_USERNAME/YOUR_REPOSITORY.git
cd YOUR_REPOSITORY
Recommended: Open in Dev Container
- Open the repository in VS Code:
code .
- When prompted, select Reopen in Container.
- If no prompt appears, run the command palette action: Dev Containers: Reopen in Container.
- Wait for container setup to complete.
The dev container runs project setup automatically and provides a consistent toolchain.
Alternative: Local Setup (without Dev Container)
If you are not using the dev container workflow, set up dependencies locally:
mise install
uv sync
Activate the virtual environment:
source ./.venv/bin/activate
.venv/Scripts/Activate.ps1
Install Git Hooks
prek install --hook-type pre-commit --overwrite
prek install --hook-type commit-msg --overwrite
First Project Customization Checklist
- Update project metadata in
pyproject.toml. - Update docs metadata in
zensical.toml:site_namesite_descriptionrepo_namerepo_urlsite_author
- Replace placeholder content in
README.md. - Review
docs/and remove or adapt pages that do not apply.
Verify Your Setup
Run the baseline checks once after bootstrap:
uv run ruff check
uv run ruff format --check
uv run ty check
uv run pytest --cov --cov-report=term-missing --cov-fail-under=80
uv run zensical build --clean
Next Steps
- Continue with Developer Setup for day-to-day development workflows.
- Review Resources for official tool and standards links.