Skip to content

Commit

Permalink
ci: Sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
skorokithakis committed Jun 10, 2024
1 parent 25891a0 commit 24a3045
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 22 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[tool.ruff]
lint.ignore = ["F403", "E501", "N802", "N803", "N806", "C901", "D100", "D102", "D102", "D10"]
[tool.ruff.lint]
extend-select = ["I"]
ignore = ["F403", "E501", "N802", "N803", "N806", "C901", "D100", "D102", "D102", "D10"]
35 changes: 18 additions & 17 deletions schema/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,24 @@

import inspect
import re
from typing import Any
from typing import Callable
from typing import cast
from typing import Dict
from typing import Generic
from typing import Iterable
from typing import List
from typing import NoReturn
from typing import Sequence
from typing import Set
from typing import Sized
from typing import Tuple
from typing import Type
from typing import TYPE_CHECKING
from typing import TypeVar
from typing import Union

from typing import (
TYPE_CHECKING,
Any,
Callable,
Dict,
Generic,
Iterable,
List,
NoReturn,
Sequence,
Set,
Sized,
Tuple,
Type,
TypeVar,
Union,
cast,
)

# Use TYPE_CHECKING to determine the correct type hint but avoid runtime import errors
if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import codecs
import os
import sys
import re
import sys

from setuptools import setup

Expand Down
3 changes: 1 addition & 2 deletions test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
import platform
import re
import sys
from collections import defaultdict
from collections import namedtuple
from collections import defaultdict, namedtuple
from functools import partial
from operator import methodcaller

Expand Down

0 comments on commit 24a3045

Please sign in to comment.