Thank you very much if you have decided to contribute to our project. We follow very simple and clear open-source research community accepted guidelines for contributing. The guideline instructions divided into sections depending on the part of the project you want to contribute.
Create a new branch, if you want to add something new.
The branch naming convention is <type>/<name of stuff>, for example
feat/variance-computation or docs/sampling-guide.
Use one of the types listed below, or the branch-only type repo for repository setup
(such as repo/init). Additional /-separated blocks are allowed, for example
feat/distributions/registry/add-some-method. Each block must contain alphanumeric words separated
only by single hyphens (-); uppercase letters are allowed. Spaces, underscores, and dots are not
allowed in new branch names.
The main branch and branches created by Dependabot are exempt from branch naming checks,
but their commit messages must follow the same rules.
Commits are added according to conventional commits.
The commit header format is <type>(<scope>): <description> or <type>: <description>.
The scope is optional; when supplied, it must be nonempty.
The <type> field must take one of these values:
featto add new functionalityfixto fix a bug in the projectrefactorfor code refactoring, such as renaming a variabletestto add tests, refactor themstructfor changes related to a change in the structure of the project (BUT NOT CODE), for example, changing folder locationscifor various ci/cd tasksdocsfor changes in documentationchorefor changes outside the code, for example, gitignore and reamde updates
The <description> field contains the gist of the changes in the present imperative in English
without a dot at the end. The first word is a verb starting with a lowercase letter.
Subsequent letters may be capitalized to ensure that abbreviations and terms are displayed correctly.
Keep commit messages concise, informative, and focused on the essence of the change. Prefer a single
line; multiline messages are discouraged but allowed when additional context is necessary.
Automated checks validate the header format, the lowercase first letter of the description, and the
absence of a trailing period. They do not attempt to determine whether the first word is a verb.
These checks run in GitHub Actions on branch pushes and pull requests.
Examples:
- Good: "feat: add module for future scrubber implementations"
- Good: "feat(distributions): add variance computation"
- Good: "fix: handle infinite ppf bounds"
- Bad: "Added module for future scrubber implementations."
- Bad: "feat: Add variance computation."
- Install
gitand clone this repo. - Build project following build instructions in README.md file, make sure everything is ok.
- Run tests following instructions in README.md file, make sure all checks passing.
- Create new branch from main using branch naming rules.
- Implement new feature or fix existing one in the source code.
- Run the tests.
- Commit your changes.
- Open a pull-request.
- Wait for review from developers of the project.
- Fix major and minor issues if presented.
- Get your work merged into
main!
Use the instructions for PySATL members, but use forks instead of branches. You probably won't have access to create branches in the original repository.
- Don't use merge, only rebase (to keep a linear commit history)
- Do not change other people's branches unless absolutely necessary
- Recheck your commit history before creating a pull request
- Do not use small "fix" commit if you messed up in previous ones. Use
git commit --fixupandgit rebase -i --autosquashorgit commit --amendif bad commit is the last one. "fix" commits stand for bugs that has been already in master.
Forbidden to merge your pull request into the branch yourself.
Each pull request must be reviewed by one of the maintainers
- Mikhal Mikhailov (desiment)
- Vladimir Kutuev (vkutuev)
- Leonid Elkin (LeonidElkin)
If you click on the green button, then make sure that it says REBASE AND MERGE!
The review takes place in the form of comments to pull requests, discussions in the team chat and personal communication. Be polite and don't flood the discussions.