diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 08799687a..631cb522d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,3 +13,9 @@ repos: - id: isort name: isort (python) 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']