order imports with isort
This commit is contained in:
parent
0f45f89211
commit
09ddea939c
@ -17,3 +17,6 @@ exclude = [
|
|||||||
line-length = 120
|
line-length = 120
|
||||||
target-version = ['py311']
|
target-version = ['py311']
|
||||||
exclude = '_pb2.py'
|
exclude = '_pb2.py'
|
||||||
|
|
||||||
|
[tool.isort]
|
||||||
|
profile = "black"
|
||||||
|
@ -5,9 +5,7 @@ import os.path
|
|||||||
import typing
|
import typing
|
||||||
|
|
||||||
import jinja2
|
import jinja2
|
||||||
|
|
||||||
import quart.templating
|
import quart.templating
|
||||||
|
|
||||||
import quart_trio
|
import quart_trio
|
||||||
|
|
||||||
import capport.comm.hub
|
import capport.comm.hub
|
||||||
|
@ -4,7 +4,6 @@ import ipaddress
|
|||||||
import typing
|
import typing
|
||||||
|
|
||||||
import quart
|
import quart
|
||||||
|
|
||||||
import werkzeug
|
import werkzeug
|
||||||
from werkzeug.http import parse_list_header
|
from werkzeug.http import parse_list_header
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@ from capport.utils.sd_notify import open_sdnotify
|
|||||||
|
|
||||||
from .app import app
|
from .app import app
|
||||||
|
|
||||||
|
|
||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@ import ipaddress
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
import quart
|
import quart
|
||||||
|
|
||||||
import trio
|
import trio
|
||||||
|
|
||||||
import capport.comm.hub
|
import capport.comm.hub
|
||||||
|
@ -15,7 +15,6 @@ import trio
|
|||||||
import capport.comm.message
|
import capport.comm.message
|
||||||
import capport.database
|
import capport.database
|
||||||
|
|
||||||
|
|
||||||
if typing.TYPE_CHECKING:
|
if typing.TYPE_CHECKING:
|
||||||
from ..config import Config
|
from ..config import Config
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import google.protobuf.message
|
|
||||||
import typing
|
import typing
|
||||||
|
|
||||||
|
import google.protobuf.message
|
||||||
|
|
||||||
# manually maintained typehints for protobuf created (and monkey-patched) types
|
# manually maintained typehints for protobuf created (and monkey-patched) types
|
||||||
|
|
||||||
class Message(google.protobuf.message.Message):
|
class Message(google.protobuf.message.Message):
|
||||||
|
@ -6,7 +6,6 @@ import os.path
|
|||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
|
|
||||||
_cached_config: Config | None = None
|
_cached_config: Config | None = None
|
||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@ import struct
|
|||||||
import typing
|
import typing
|
||||||
|
|
||||||
import google.protobuf.message
|
import google.protobuf.message
|
||||||
|
|
||||||
import trio
|
import trio
|
||||||
|
|
||||||
import capport.comm.message
|
import capport.comm.message
|
||||||
|
@ -9,7 +9,6 @@ from pyroute2.netlink.nfnetlink import NFNL_SUBSYS_NFTABLES # type: ignore
|
|||||||
from pyroute2.netlink.nfnetlink import nfgen_msg # type: ignore
|
from pyroute2.netlink.nfnetlink import nfgen_msg # type: ignore
|
||||||
from pyroute2.netlink.nfnetlink import nftsocket as _nftsocket # type: ignore
|
from pyroute2.netlink.nfnetlink import nftsocket as _nftsocket # type: ignore
|
||||||
|
|
||||||
|
|
||||||
NFPROTO_INET: int = 1 # nfgen_family "ipv4+ipv6"; strace decodes this as "AF_UNSPEC"
|
NFPROTO_INET: int = 1 # nfgen_family "ipv4+ipv6"; strace decodes this as "AF_UNSPEC"
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@ from __future__ import annotations
|
|||||||
|
|
||||||
import zoneinfo
|
import zoneinfo
|
||||||
|
|
||||||
|
|
||||||
_zoneinfo: zoneinfo.ZoneInfo | None = None
|
_zoneinfo: zoneinfo.ZoneInfo | None = None
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user