File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,10 +28,16 @@ repos:
2828 - id : blacken-docs
2929 additional_dependencies :
3030 - black==22.10.0
31- - repo : https://github.com/pycqa/isort
32- rev : 5.10.1
31+ - repo : https://github.com/asottile/reorder_python_imports
32+ rev : v3.9.0
3333 hooks :
34- - id : isort
34+ - id : reorder-python-imports
35+ args :
36+ - --py37-plus
37+ - --application-directories
38+ - .:example:src
39+ - --add-import
40+ - ' from __future__ import annotations'
3541- repo : https://github.com/PyCQA/flake8
3642 rev : 5.0.4
3743 hooks :
Original file line number Diff line number Diff line change @@ -5,10 +5,6 @@ build-backend = "setuptools.build_meta"
55[tool .black ]
66target-version = [' py37' ]
77
8- [tool .isort ]
9- profile = " black"
10- add_imports = " from __future__ import annotations"
11-
128[tool .mypy ]
139mypy_path = " src/"
1410show_error_codes = true
Original file line number Diff line number Diff line change 66import sys
77from itertools import groupby
88from types import ModuleType
9- from typing import Any , Callable , TypeVar
9+ from typing import Any
10+ from typing import Callable
11+ from typing import TypeVar
1012
1113from _pytest .config import Config
1214from _pytest .config .argparsing import Parser
1315from _pytest .nodes import Item
14- from pytest import Collector , fixture , hookimpl
16+ from pytest import Collector
17+ from pytest import fixture
18+ from pytest import hookimpl
1519
1620from pytest_randomly .compat import md5
1721
You can’t perform that action at this time.
0 commit comments