Skip to content

Commit

Permalink
fixup! add pre-commit configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
akcano committed Feb 21, 2025
1 parent d5a412b commit d9ea2d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
File renamed without changes.
9 changes: 5 additions & 4 deletions docs/content/set-up.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,19 @@ Pre-commit hooks (optional)
Use `pre-commit <https://pre-commit.com/>`_ hooks with the starter pack
to automate checks like spelling and inclusive language.

The starter pack includes a ready-to-use :file:`.pre-commit-config.yaml` file:
The starter pack includes a ready-to-use :file:`.pre-commit-config.yaml` file
under :file:`docs/.sphinx/`:

.. literalinclude:: ../../.pre-commit-config.yaml
.. literalinclude:: ../.sphinx/.pre-commit-config.yaml
:language: yaml

For a new project, copy this file to your project's root directory;
for an existing project using ``pre-commit``,
add these hooks to your configuration.

To apply the configuration, install the starter pack hooks::
To apply the configuration, install the starter pack hooks, for instance::

pre-commit install
pre-commit install --config docs/.sphinx/.pre-commit-config.yaml


After that, you should see the checks running with every commit::
Expand Down

0 comments on commit d9ea2d1

Please sign in to comment.