Add autoflake to pre-commit configuration (#9666)

This commit is contained in:
Bruno Oliveira
2022-02-11 14:34:02 -03:00
committed by GitHub
parent b79eff065e
commit 8afec9a64d
4 changed files with 8 additions and 6 deletions

View File

@@ -20,6 +20,14 @@ repos:
- id: debug-statements
exclude: _pytest/(debugging|hookspec).py
language_version: python3
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
- id: autoflake
name: autoflake
args: ["--in-place", "--remove-unused-variables", "--remove-all-unused-imports"]
language: python
files: \.py$
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks: