Development Workflow¶
This page describes the expected local workflow and repository conventions.
Environment Setup¶
Install dependencies with:
Install Git hooks with:
Formatting and Linting¶
Use these commands as the primary local quality loop:
ruff format handles formatting, while ruff check --fix applies auto-fixable lint rules.
Type Checking¶
Run type checks with:
The template is configured to check src/ and tests/, while excluding scripts/ and notebooks/ by default.
Testing¶
Run the test suite with:
Pytest is the expected test framework for this template. New tests should follow pytest conventions and stay close to user-visible behavior.
Documentation Style¶
For Python docstrings, prefer the Google Python style guide:
- Use Google-style docstrings for modules, classes, and functions when documentation is needed.
- Prefer concise, descriptive English in code comments and docstrings.
- Prefer double quotes over single quotes for strings unless a specific file or framework convention requires otherwise.
Reference: Google Python Style Guide
Commit Style¶
When creating Git commits, use Conventional Commits style:
feat: add project initialization guidefix: correct gitleaks email allowlist exampledocs: expand repository structure page
Reference: Conventional Commits
AI-Assisted Development Guidance¶
This repository is intended to work well with coding agents, but agent output quality depends on accurate repository context.
If the repository changes substantially, update AGENTS.md so the documented structure and conventions continue to match the real codebase. Do not assume the file stays correct automatically.