Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,29 @@ config files.

.. _tomli: https://pypi.org/project/tomli/

`pre-commit <https://pre-commit.com/>`_ hook
--------------------------------------------

codespell also works with `pre-commit`, using

.. code-block:: yaml

- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell

If one configures codespell using the `pyproject.toml` file instead use:

.. code-block:: yaml

- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
additional_dependencies:
- tomli

Dictionary format
-----------------

Expand Down