Sort and format imports in examples/ and default_profiles/ (#2873)
This commit is contained in:
parent
d3fa738bdd
commit
0aa6dcc78e
|
|
@ -1,7 +1,6 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
import archinstall
|
import archinstall
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import Profile, ProfileType
|
from archinstall.default_profiles.profile import Profile, ProfileType
|
||||||
from archinstall.lib.models import User
|
from archinstall.lib.models import User
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,9 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
|
from archinstall.default_profiles.profile import GreeterType, Profile, ProfileType, SelectResult
|
||||||
from archinstall.lib.output import info
|
from archinstall.lib.output import info
|
||||||
from archinstall.lib.profile.profiles_handler import profile_handler
|
from archinstall.lib.profile.profiles_handler import profile_handler
|
||||||
from archinstall.default_profiles.profile import Profile, ProfileType, SelectResult, GreeterType
|
from archinstall.tui import FrameProperties, MenuItem, MenuItemGroup, PreviewStyle, ResultType, SelectMenu
|
||||||
|
|
||||||
from archinstall.tui import (
|
|
||||||
MenuItemGroup, MenuItem, SelectMenu,
|
|
||||||
FrameProperties, ResultType, PreviewStyle
|
|
||||||
)
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from archinstall.lib.installer import Installer
|
from archinstall.lib.installer import Installer
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType
|
from archinstall.default_profiles.profile import ProfileType
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType, GreeterType
|
from archinstall.default_profiles.profile import GreeterType, ProfileType
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType, GreeterType
|
from archinstall.default_profiles.profile import GreeterType, ProfileType
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType, GreeterType
|
from archinstall.default_profiles.profile import GreeterType, ProfileType
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType, GreeterType
|
from archinstall.default_profiles.profile import GreeterType, ProfileType
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType, GreeterType
|
from archinstall.default_profiles.profile import GreeterType, ProfileType
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType, GreeterType
|
from archinstall.default_profiles.profile import GreeterType, ProfileType
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType, GreeterType
|
from archinstall.default_profiles.profile import GreeterType, ProfileType
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType, GreeterType
|
from archinstall.default_profiles.profile import GreeterType, ProfileType
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,9 @@
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from typing import TYPE_CHECKING, Any
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType, GreeterType, SelectResult
|
from archinstall.default_profiles.profile import GreeterType, ProfileType, SelectResult
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
from archinstall.tui import (
|
from archinstall.tui import Alignment, FrameProperties, MenuItem, MenuItemGroup, ResultType, SelectMenu
|
||||||
MenuItemGroup, MenuItem, SelectMenu,
|
|
||||||
FrameProperties, ResultType, Alignment
|
|
||||||
)
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from archinstall.lib.installer import Installer
|
from archinstall.lib.installer import Installer
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType, GreeterType
|
from archinstall.default_profiles.profile import GreeterType, ProfileType
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType, GreeterType
|
from archinstall.default_profiles.profile import GreeterType, ProfileType
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType, GreeterType
|
from archinstall.default_profiles.profile import GreeterType, ProfileType
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType, GreeterType
|
from archinstall.default_profiles.profile import GreeterType, ProfileType
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType, GreeterType
|
from archinstall.default_profiles.profile import GreeterType, ProfileType
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,9 @@
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from typing import TYPE_CHECKING, Any
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType, GreeterType, SelectResult
|
from archinstall.default_profiles.profile import GreeterType, ProfileType, SelectResult
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
from archinstall.tui import Alignment, FrameProperties, MenuItem, MenuItemGroup, ResultType, SelectMenu
|
||||||
from archinstall.tui import (
|
|
||||||
MenuItemGroup, MenuItem, SelectMenu,
|
|
||||||
FrameProperties, Alignment, ResultType
|
|
||||||
)
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from archinstall.lib.installer import Installer
|
from archinstall.lib.installer import Installer
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType, GreeterType
|
from archinstall.default_profiles.profile import GreeterType, ProfileType
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import Profile, ProfileType
|
from archinstall.default_profiles.profile import Profile, ProfileType
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ from __future__ import annotations
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
from enum import Enum, auto
|
from enum import Enum, auto
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from ..lib.storage import storage
|
from ..lib.storage import storage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,9 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
|
from archinstall.default_profiles.profile import Profile, ProfileType, SelectResult
|
||||||
from archinstall.lib.output import info
|
from archinstall.lib.output import info
|
||||||
from archinstall.lib.profile.profiles_handler import profile_handler
|
from archinstall.lib.profile.profiles_handler import profile_handler
|
||||||
from archinstall.default_profiles.profile import ProfileType, Profile, SelectResult
|
from archinstall.tui import FrameProperties, MenuItem, MenuItemGroup, PreviewStyle, ResultType, SelectMenu
|
||||||
|
|
||||||
from archinstall.tui import (
|
|
||||||
MenuItemGroup, MenuItem, SelectMenu,
|
|
||||||
FrameProperties, ResultType, PreviewStyle
|
|
||||||
)
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from archinstall.lib.installer import Installer
|
from archinstall.lib.installer import Installer
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import archinstall
|
import archinstall
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import Profile, ProfileType
|
from archinstall.default_profiles.profile import Profile, ProfileType
|
||||||
from archinstall.lib.models import User
|
from archinstall.lib.models import User
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import ProfileType
|
from archinstall.default_profiles.profile import ProfileType
|
||||||
from archinstall.default_profiles.xorg import XorgProfile
|
from archinstall.default_profiles.xorg import XorgProfile
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
from typing import Any, TYPE_CHECKING
|
from typing import TYPE_CHECKING, Any
|
||||||
|
|
||||||
from archinstall.default_profiles.profile import Profile, ProfileType
|
from archinstall.default_profiles.profile import Profile, ProfileType
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,7 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from archinstall import Installer
|
from archinstall import Installer, disk, models, profile
|
||||||
from archinstall import profile
|
|
||||||
from archinstall.default_profiles.minimal import MinimalProfile
|
from archinstall.default_profiles.minimal import MinimalProfile
|
||||||
from archinstall import disk
|
|
||||||
from archinstall import models
|
|
||||||
|
|
||||||
|
|
||||||
# we're creating a new ext4 filesystem installation
|
# we're creating a new ext4 filesystem installation
|
||||||
fs_type = disk.FilesystemType('ext4')
|
fs_type = disk.FilesystemType('ext4')
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,17 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import archinstall
|
import archinstall
|
||||||
from archinstall import info, debug
|
from archinstall import SysInfo, debug, info
|
||||||
from archinstall import SysInfo
|
from archinstall.lib import disk, locale
|
||||||
from archinstall.lib import locale
|
|
||||||
from archinstall.lib import disk
|
|
||||||
from archinstall.lib.global_menu import GlobalMenu
|
|
||||||
from archinstall.lib.configuration import ConfigurationOutput
|
from archinstall.lib.configuration import ConfigurationOutput
|
||||||
|
from archinstall.lib.global_menu import GlobalMenu
|
||||||
from archinstall.lib.installer import Installer
|
from archinstall.lib.installer import Installer
|
||||||
|
from archinstall.lib.interactions.general_conf import ask_chroot
|
||||||
from archinstall.lib.models import AudioConfiguration, Bootloader
|
from archinstall.lib.models import AudioConfiguration, Bootloader
|
||||||
from archinstall.lib.models.network_configuration import NetworkConfiguration
|
from archinstall.lib.models.network_configuration import NetworkConfiguration
|
||||||
from archinstall.lib.profile.profiles_handler import profile_handler
|
from archinstall.lib.profile.profiles_handler import profile_handler
|
||||||
from archinstall.lib.interactions.general_conf import ask_chroot
|
|
||||||
from archinstall.tui import Tui
|
from archinstall.tui import Tui
|
||||||
|
|
||||||
|
|
||||||
if archinstall.arguments.get('help'):
|
if archinstall.arguments.get('help'):
|
||||||
print("See `man archinstall` for help.")
|
print("See `man archinstall` for help.")
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,9 @@
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import archinstall
|
import archinstall
|
||||||
from archinstall import profile, info
|
from archinstall import info, profile
|
||||||
from archinstall.tui import Tui
|
from archinstall.tui import Tui
|
||||||
|
|
||||||
|
|
||||||
for _profile in profile.profile_handler.get_mac_addr_profiles():
|
for _profile in profile.profile_handler.get_mac_addr_profiles():
|
||||||
# Tailored means it's a match for this machine
|
# Tailored means it's a match for this machine
|
||||||
# based on it's MAC address (or some other criteria
|
# based on it's MAC address (or some other criteria
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,14 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import archinstall
|
import archinstall
|
||||||
from archinstall import info, debug
|
from archinstall import ConfigurationOutput, Installer, debug, info
|
||||||
from archinstall import Installer, ConfigurationOutput
|
|
||||||
from archinstall.default_profiles.minimal import MinimalProfile
|
from archinstall.default_profiles.minimal import MinimalProfile
|
||||||
from archinstall.lib.interactions import suggest_single_disk_layout, select_devices
|
from archinstall.lib import disk
|
||||||
|
from archinstall.lib.interactions import select_devices, suggest_single_disk_layout
|
||||||
from archinstall.lib.models import Bootloader, User
|
from archinstall.lib.models import Bootloader, User
|
||||||
from archinstall.lib.profile import ProfileConfiguration, profile_handler
|
from archinstall.lib.profile import ProfileConfiguration, profile_handler
|
||||||
from archinstall.lib import disk
|
|
||||||
from archinstall.tui import Tui
|
from archinstall.tui import Tui
|
||||||
|
|
||||||
|
|
||||||
info("Minimal only supports:")
|
info("Minimal only supports:")
|
||||||
info(" * Being installed to a single disk")
|
info(" * Being installed to a single disk")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ from pathlib import Path
|
||||||
|
|
||||||
import archinstall
|
import archinstall
|
||||||
from archinstall import debug
|
from archinstall import debug
|
||||||
from archinstall.lib.installer import Installer
|
|
||||||
from archinstall.lib.configuration import ConfigurationOutput
|
|
||||||
from archinstall.lib import disk
|
from archinstall.lib import disk
|
||||||
|
from archinstall.lib.configuration import ConfigurationOutput
|
||||||
|
from archinstall.lib.installer import Installer
|
||||||
from archinstall.tui import Tui
|
from archinstall.tui import Tui
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue