mirror of https://github.com/celery/kombu.git
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:
parent
4fac6bc84c
commit
6593a2d7ea
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue