Git Workflow
Development Workflow
Create a feature branch
git checkout -b feature/your-feature-nameMake changes and test
- Write code
- Add tests
- Run tests to ensure they pass
- Run linter to check code quality
Commit changes
git add . git commit -m "feat: your feature description"Push and create Pull Request
git push origin feature/your-feature-name
Pre-commit (prek)
This repository includes a .pre-commit-config.yaml. prek is a drop-in replacement for pre-commit.
Install prek
macOS/Linux (Homebrew)
brew install prekPython (uv)
uv tool install prek
You can also run it once without installing:
uvx prek --version
Python (pipx)
pipx install prekNode.js (pnpm)
pnpm add -D @j178/prekStandalone installer (Linux/macOS)
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/latest/download/prek-installer.sh | sh
If you use the standalone installer, prefer copying the installer URL from the latest GitHub release.
If you're already using pre-commit in this repository:
- Replace
pre-commitcommands in your scripts/docs withprek. - Reinstall hooks once with
prek install -f.
Run hooks on demand
prek run
Run all hooks against the entire repository:
prek run --all-files
Install git hooks
prek install
If you previously installed pre-commit hooks, reinstall once:
prek install -f
To uninstall:
prek uninstall
If installed via the standalone installer, prek can update itself:
prek self update
Commit Convention
We follow Conventional Commits specification:
feat:New featurefix:Bug fixdocs:Documentation changesstyle:Code formatting changesrefactor:Code refactoringtest:Test-related changeschore:Build process or auxiliary tool changes