Thank you for your interest in contributing to Hype!
-
Prerequisites
- Go 1.21 or later
- Git
-
Clone the repository
git clone https://github.com/gopherguides/hype.git cd hype -
Build and install locally
go install ./cmd/hype
-
Run tests
go test ./...
Use these prefixes for your branches:
feat/- New features (e.g.,feat/add-pdf-export)fix/- Bug fixes (e.g.,fix/broken-include-paths)docs/- Documentation changes (e.g.,docs/update-readme)refactor/- Code refactoring (e.g.,refactor/simplify-parser)
-
Create a feature branch from main
git checkout main git pull origin main git checkout -b feat/your-feature
-
Make your changes
- Write clear, concise code
- Add tests for new functionality
- Update documentation if needed
-
Commit your changes
- Use conventional commit format:
type(scope): description - Types:
feat,fix,docs,style,refactor,test,chore - Example:
feat(parser): add support for custom attributes
- Use conventional commit format:
-
Push and create a PR
git push -u origin feat/your-feature gh pr create
-
Address review feedback
- Make requested changes
- Push additional commits
- Request re-review when ready
- Follow standard Go conventions
- Run
go fmtbefore committing - Use meaningful variable and function names
- Keep functions focused and small
- Write table-driven tests when possible
- Test both success and error cases
- Use
testdata/directories for test fixtures
The README is generated from hype.md using hype itself:
hype export -format=markdown -f hype.md > README.mdIf you modify documentation in docs/ or hype.md, regenerate the README.
Open an issue if you have questions or need help getting started.