diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0d8179bc2a8f8df7daeff364f48fff582fad81f2..fbf6e834a8066dcedcc23d097caab343bdf7bdee 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,6 +10,17 @@ repos: - id: end-of-file-fixer - id: mixed-line-ending - id: trailing-whitespace +- repo: https://github.com/PyCQA/autoflake + rev: v1.7.7 + hooks: + - id: autoflake + args: + - --recursive + - --expand-star-imports + - --remove-all-unused-imports + - --remove-duplicate-keys + - --remove-unused-variables + - --in-place - repo: https://github.com/psf/black rev: 22.10.0 hooks: @@ -51,14 +62,3 @@ repos: rev: 0.7.16 hooks: - id: mdformat -- repo: https://github.com/PyCQA/autoflake - rev: v1.7.7 - hooks: - - id: autoflake - args: - - --recursive - - --expand-star-imports - - --remove-all-unused-imports - - --remove-duplicate-keys - - --remove-unused-variables - - --in-place