add autoflake to .pre-commit-config.yaml to automatically remove unused imports (#1637)

* add autoflake to .pre-commit-config.yaml to automatically remove unused imports

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Jason Barnett 2022-12-27 13:15:28 -05:00 committed by GitHub
parent 4fac6bc84c
commit 6593a2d7ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,12 @@ repos:
- id: pyupgrade
args: ["--py37-plus"]
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.0
hooks:
- id: autoflake
args: ["--in-place", "--ignore-pass-after-docstring", "--imports"]
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:

View File

@ -5,7 +5,7 @@
from __future__ import annotations
from difflib import SequenceMatcher
from typing import Iterable, Iterator, Optional, Tuple, Union
from typing import Iterable, Iterator
from kombu import version_info_t