Skip to content
Merged
Changes from 2 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
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/myint/autoflake
Comment thread
jackton1 marked this conversation as resolved.
Outdated
rev: v1.4
hooks:
- id: autoflake

.. _pre-commit: https://pre-commit.com