Update to isort 5.9.3 (#3238)

This commit is contained in:
Stefan Agner 2021-10-18 20:28:38 +02:00 committed by GitHub
parent bb474a5c14
commit 9dd5eee1ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 6 deletions

View File

@ -23,8 +23,8 @@ repos:
- id: check-executables-have-shebangs - id: check-executables-have-shebangs
stages: [manual] stages: [manual]
- id: check-json - id: check-json
- repo: https://github.com/pre-commit/mirrors-isort - repo: https://github.com/PyCQA/isort
rev: v4.3.21 rev: 5.9.3
hooks: hooks:
- id: isort - id: isort
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade

View File

@ -4,9 +4,8 @@ include_trailing_comma=True
force_grid_wrap=0 force_grid_wrap=0
line_length=88 line_length=88
indent = " " indent = " "
not_skip = __init__.py
force_sort_within_sections = true force_sort_within_sections = true
sections = FUTURE,STDLIB,INBETWEENS,THIRDPARTY,FIRSTPARTY,LOCALFOLDER sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
default_section = THIRDPARTY default_section = THIRDPARTY
forced_separate = tests forced_separate = tests
combine_as_imports = true combine_as_imports = true

View File

@ -22,17 +22,18 @@ if TYPE_CHECKING:
from .arch import CpuArch from .arch import CpuArch
from .auth import Auth from .auth import Auth
from .backups.manager import BackupManager from .backups.manager import BackupManager
from .bus import Bus
from .core import Core from .core import Core
from .dbus.manager import DBusManager from .dbus.manager import DBusManager
from .discovery import Discovery from .discovery import Discovery
from .hardware.manager import HardwareManager from .hardware.manager import HardwareManager
from .os.manager import OSManager
from .homeassistant.module import HomeAssistant from .homeassistant.module import HomeAssistant
from .host.manager import HostManager from .host.manager import HostManager
from .ingress import Ingress from .ingress import Ingress
from .jobs import JobManager from .jobs import JobManager
from .misc.scheduler import Scheduler from .misc.scheduler import Scheduler
from .misc.tasks import Tasks from .misc.tasks import Tasks
from .os.manager import OSManager
from .plugins.manager import PluginManager from .plugins.manager import PluginManager
from .resolution.module import ResolutionManager from .resolution.module import ResolutionManager
from .security import Security from .security import Security
@ -40,7 +41,6 @@ if TYPE_CHECKING:
from .store import StoreManager from .store import StoreManager
from .supervisor import Supervisor from .supervisor import Supervisor
from .updater import Updater from .updater import Updater
from .bus import Bus
T = TypeVar("T") T = TypeVar("T")