You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#. Install pre-commit via ``pip install pre-commit``
7
+
#. Run ``pre-commit install`` to set up pre-commit hooks
8
+
#. Run ``pre-commit install --hook-type commit-msg`` to register commit-msg hook
9
+
#. Make changes to the code, and commit your changes to a separate branch
10
+
#. Create a fork of the repository on GitHub
11
+
#. Push your branch to your fork, and open a pull request
12
+
13
+
Tips
14
+
####
15
+
16
+
#. When first creating a new project, it is helpful to run ``pre-commit run --all-files`` to ensure all files pass the pre-commit checks.
17
+
#. A quick way to fix ``ruff`` issues is by installing ruff (``pip install ".[dev]"``) and running the ``ruff check --fix`` command at the root of your repository.
18
+
#. A quick way to fix ``codespell`` issues is by installing codespell (``pip install codespell``) and running the ``codespell -w`` command at the root of your directory.
19
+
#. The `.codespellrc file <https://github.com/codespell-project/codespell#using-a-config-file>`_ can be used fix any other codespell issues, such as ignoring certain files, directories, words, or regular expressions.
0 commit comments