Skip to content

Commit

Permalink
add example usage
Browse files Browse the repository at this point in the history
  • Loading branch information
TColl committed Jan 13, 2022
1 parent e4fa27e commit 8cc193e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ if you're finding they're more hassle than you'd like!
Documentation for our current hooks are available on the left hand side of
this page.

example configuration:

.. code-block:: yaml
:caption: .pre-commit-config.yaml
repos:
- repo: https://github.com/stfc/pre-commit-hooks
rev: v0.3.0
hooks:
- id: check-mypy-import-errors
- id: check-pylint-import-errors
TODO: add a worked example of creating a new hook

TODO: add instructions on how to use these hooks within pre-commit-config.yaml
Expand Down

0 comments on commit 8cc193e

Please sign in to comment.