- Clone the repository using
git clone - Install pre-commit via
pip install pre-commit - Run
pre-commit installto set up pre-commit hooks - Run
pre-commit install --hook-type commit-msgto register commit-msg hook - Make changes to the code, and commit your changes to a separate branch
- Create a fork of the repository on GitHub
- Push your branch to your fork, and open a pull request
- When first creating a new project, it is helpful to run
pre-commit run --all-filesto ensure all files pass the pre-commit checks. - A quick way to fix
ruffissues is by installing ruff (pip install ruff) and running theruff check --fix .orruff formatcommand at the root of your repository. - A quick way to fix
codespellissues is by installing codespell (pip install codespell) and running thecodespell -wcommand at the root of your directory. - The .codespellrc file can be used fix any other codespell issues, such as ignoring certain files, directories, words, or regular expressions.