File tree Expand file tree Collapse file tree 5 files changed +15
-14
lines changed Expand file tree Collapse file tree 5 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -42,16 +42,11 @@ repos:
42
42
- id : blacken-docs
43
43
additional_dependencies :
44
44
- black==23.1.0
45
- - repo : https://github.com/asottile/reorder-python-imports
46
- rev : v3.12.0
45
+ - repo : https://github.com/pycqa/isort
46
+ rev : 5.13.2
47
47
hooks :
48
- - id : reorder-python-imports
49
- args :
50
- - --py38-plus
51
- - --application-directories
52
- - .:example:src
53
- - --add-import
54
- - ' from __future__ import annotations'
48
+ - id : isort
49
+ name : isort (python)
55
50
- repo : https://github.com/PyCQA/flake8
56
51
rev : 7.0.0
57
52
hooks :
Original file line number Diff line number Diff line change @@ -50,6 +50,13 @@ time_machine = "time_machine"
50
50
[tool .black ]
51
51
target-version = [' py38' ]
52
52
53
+ [tool .isort ]
54
+ add_imports = [
55
+ " from __future__ import annotations"
56
+ ]
57
+ force_single_line = true
58
+ profile = " black"
59
+
53
60
[tool .pytest .ini_options ]
54
61
addopts = """ \
55
62
--strict-config
Original file line number Diff line number Diff line change 5
5
from setuptools import Extension
6
6
from setuptools import setup
7
7
8
-
9
8
if hasattr (sys , "pypy_version_info" ):
10
9
raise RuntimeError (
11
10
"PyPy is not currently supported by time-machine, see "
Original file line number Diff line number Diff line change 13
13
from typing import Any
14
14
from typing import Awaitable
15
15
from typing import Callable
16
- from typing import cast
17
16
from typing import Generator as TypingGenerator
18
- from typing import overload
19
17
from typing import Tuple
20
18
from typing import Type
21
19
from typing import TypeVar
22
20
from typing import Union
23
- from unittest import mock
21
+ from typing import cast
22
+ from typing import overload
24
23
from unittest import TestCase
24
+ from unittest import mock
25
25
26
26
import _time_machine
27
27
from dateutil .parser import parse as parse_datetime
Original file line number Diff line number Diff line change 10
10
from contextlib import contextmanager
11
11
from importlib .util import module_from_spec
12
12
from importlib .util import spec_from_file_location
13
- from unittest import mock
14
13
from unittest import SkipTest
15
14
from unittest import TestCase
15
+ from unittest import mock
16
16
17
17
import pytest
18
18
from dateutil import tz
You can’t perform that action at this time.
0 commit comments