Skip to content

Commit 24a3045

Browse files
committed
ci: Sort imports
1 parent 25891a0 commit 24a3045

File tree

4 files changed

+23
-22
lines changed

4 files changed

+23
-22
lines changed

pyproject.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
[tool.ruff]
2-
lint.ignore = ["F403", "E501", "N802", "N803", "N806", "C901", "D100", "D102", "D102", "D10"]
1+
[tool.ruff.lint]
2+
extend-select = ["I"]
3+
ignore = ["F403", "E501", "N802", "N803", "N806", "C901", "D100", "D102", "D102", "D10"]

schema/__init__.py

+18-17
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,24 @@
44

55
import inspect
66
import re
7-
from typing import Any
8-
from typing import Callable
9-
from typing import cast
10-
from typing import Dict
11-
from typing import Generic
12-
from typing import Iterable
13-
from typing import List
14-
from typing import NoReturn
15-
from typing import Sequence
16-
from typing import Set
17-
from typing import Sized
18-
from typing import Tuple
19-
from typing import Type
20-
from typing import TYPE_CHECKING
21-
from typing import TypeVar
22-
from typing import Union
23-
7+
from typing import (
8+
TYPE_CHECKING,
9+
Any,
10+
Callable,
11+
Dict,
12+
Generic,
13+
Iterable,
14+
List,
15+
NoReturn,
16+
Sequence,
17+
Set,
18+
Sized,
19+
Tuple,
20+
Type,
21+
TypeVar,
22+
Union,
23+
cast,
24+
)
2425

2526
# Use TYPE_CHECKING to determine the correct type hint but avoid runtime import errors
2627
if TYPE_CHECKING:

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import codecs
22
import os
3-
import sys
43
import re
4+
import sys
55

66
from setuptools import setup
77

test_schema.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
import platform
77
import re
88
import sys
9-
from collections import defaultdict
10-
from collections import namedtuple
9+
from collections import defaultdict, namedtuple
1110
from functools import partial
1211
from operator import methodcaller
1312

0 commit comments

Comments
 (0)