Thanks for taking the time to contribute! Contributions include but are not restricted to:
- Reporting bugs
- Contributing to code
- Writing tests
- Writing documentation
The following is a set of guidelines for contributing.
- First, fork this project to your own namespace.
- Clone the upstream repository to local:
git clone https://github.com/ZeroBone/OfficialEye.git
- Add the fork as a new remote:
where
git remote add fork https://github.com/YOUR_NAME/OfficialEye.git git fetch fork
fork
is the remote name of the fork repository.
Please:
-
Don't modify code on the
main
branch, it should always keep track oforigin/main
.To update
main
branch to date:git pull origin main # In rare cases that your local main branch diverges from the remote main: git fetch origin && git reset --hard main
-
Create a new branch based on the up-to-date branch for new patches (or the
dev
branch if there is no specific branch for new patches). -
Create a Pull Request from that patch branch.
We strongly recommend following this guide to set up the development environment.
Before creating a pull request, please make sure that the following commands work without any errors. Specifically, the linting should not report any code style issues, and there should not be any broken tests.
pdm run dev-docs
pdm run dev-ruff
pdm run dev-pytest