Skip to content

Commit

Permalink
Added pre-commit usage section. (#88)
Browse files Browse the repository at this point in the history
* Added pre-commit usage section.

* Update README.rst

* Update README.rst

Co-authored-by: fsouza <[email protected]>

* readme: make pre-commit happy

Co-authored-by: fsouza <[email protected]>
  • Loading branch information
jackton1 and fsouza authored Aug 23, 2022
1 parent 7b7749d commit 71b2d11
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,18 @@ To prevent that, without having to exclude the entire file, you can add a
from .endpoints import role, token, user, utils # noqa
That line will instruct ``autoflake`` to let that specific line as is.


Using pre-commit_ hooks
=======================

Add the following to your `.pre-commit-config.yaml`

.. code-block:: yaml
- repo: https://github.com/PyCQA/autoflake
rev: v1.4
hooks:
- id: autoflake
.. _pre-commit: https://pre-commit.com

0 comments on commit 71b2d11

Please sign in to comment.