Skip to content

Commit

Permalink
build(pre-commit): add autoflake
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Dec 30, 2021
1 parent 6149190 commit 101ece9
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v2.29.1
rev: v2.30.1
hooks:
- id: pyupgrade
- repo: https://github.com/psf/black
Expand Down Expand Up @@ -66,6 +66,22 @@ repos:
hooks:
- id: prettier
stages: [commit]
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
- id: autoflake
name: autoflake
language: python
args:
[
--in-place,
--remove-all-unused-imports,
--remove-unused-variables,
--remove-duplicate-keys,
--ignore-init-module-imports,
--exclude,
compat.py,
]
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
Expand Down

0 comments on commit 101ece9

Please sign in to comment.