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']