py-check.mk: Run isort with "make format"
If /usr/bin/isort is found, run it during "make format" to get a defined way the imports are sorted. tool.isort in pyproject.toml is updated to match the other fixers. Commit the fallout of this change. Running the other fixers alone doesn't change the formatting, so this should be safe. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
a7dd607667
commit
5d77955ed9
56 changed files with 109 additions and 67 deletions
|
|
@ -1,15 +1,15 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from functools import cached_property
|
||||
from typing import override, TYPE_CHECKING
|
||||
from typing import TYPE_CHECKING, override
|
||||
|
||||
from ...CmdBase import CmdBase as Base
|
||||
from ..CmdSecrets import CmdSecrets as Parent
|
||||
from .lib.DistroContext import DistroContext
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from collections.abc import Collection
|
||||
from argparse import ArgumentParser
|
||||
from collections.abc import Collection
|
||||
|
||||
from .lib.base import Attrs
|
||||
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@ from .FilesContext import FilesContext
|
|||
|
||||
if TYPE_CHECKING:
|
||||
from collections.abc import Collection
|
||||
from .base import Attrs
|
||||
|
||||
from ....lib.Distro import Distro
|
||||
from .base import Attrs
|
||||
|
||||
class DistroContext(FilesContext):
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import tarfile
|
|||
from tarfile import TarFile
|
||||
from typing import TYPE_CHECKING, Callable
|
||||
|
||||
from ....lib.log import DEBUG, log
|
||||
from ....lib.ExecContext import ExecContext
|
||||
from ....lib.log import DEBUG, log
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing import Iterable
|
||||
|
|
|
|||
Loading…
Reference in a new issue