Contributing
Thank you for contributing to lattpy
:tada:
Pre-commit Hooks
We are using the pre-commit framework to automatically run some checks and the Black code formatter at commit time. This ensures that every commit fulfills the basic requirements to be mergeable and follows the coding style of the project.
The pre-commit hooks can be installed via
$ pre-commit install
pre-commit installed at .git/hooks/pre-commit
Commit Message Format
A format influenced by Angular commit message.
<type>: <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
Type
Must be one of the following:
feat: A new feature
fix: Bug fixes or improvements
perf: A code change that improves performance
refactor: Code refactoring
ci: Changes to CI configuration files and scripts
docs: Documention changes
build: Updating Makefile etc, no production code changes
test: Adding missing tests or correcting existing tests
update Other configurations updates
auto Mostly used by automatic commits (for example from GitHub workflows)
Subject
Use the summary field to provide a succinct description of the change:
use the imperative, present tense: “change” not “changed” nor “changes”
don’t capitalize the first letter
no dot (.) at the end
Body (optional)
Just as in the summary, use the imperative, present tense: “fix” not “fixed” nor “fixes”.
Explain the motivation for the change in the commit message body. This commit message should explain why you are making the change. You can include a comparison of the previous behavior with the new behavior in order to illustrate the impact of the change.