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