From 4541835487c72da2f6b2a86160341377182bf8b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moura?= Date: Mon, 11 Mar 2024 22:56:14 -0300 Subject: [PATCH] adding autoflake --- .pre-commit-config.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a715e9c9e..631cb522d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,4 +12,10 @@ repos: hooks: - id: isort name: isort (python) - args: ["--profile", "black", "--filter-files"] \ No newline at end of file + args: ["--profile", "black", "--filter-files"] + + - repo: https://github.com/PyCQA/autoflake + rev: v2.2.1 + hooks: + - id: autoflake + args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variables', '--ignore-init-module-imports']