From f50ba88aa4ec53e1cd818f1cc46eab1a3ba8a43f Mon Sep 17 00:00:00 2001 From: shwsingh Date: Wed, 7 Jun 2023 16:17:15 +0530 Subject: [PATCH] Add autoflake in pre-commit --- .pre-commit-config.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7626efe6a69..ff2506bf221 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,6 +26,18 @@ repos: rev: 6.0.0 hooks: - id: flake8 +- repo: https://github.com/PyCQA/autoflake + rev: v2.1.1 + hooks: + - id: autoflake + "types": [ python ] + require_serial: true + args: + - "--in-place" + - "--expand-star-imports" + - "--remove-duplicate-keys" + - "--remove-unused-variables" + - "--remove-all-unused-imports" - repo: local hooks: - id: fix-uuids