Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into integrate-curses
Browse files Browse the repository at this point in the history
  • Loading branch information
svartkanin committed Sep 21, 2024
2 parents 753eef4 + a1c9e1c commit 41b4cfe
Show file tree
Hide file tree
Showing 40 changed files with 551 additions and 260 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bandit.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on: [ push, pull_request ]
name: Bandit security checkup
jobs:
flake8:
bandit:
runs-on: ubuntu-latest
container:
image: archlinux/archlinux:latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flake8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
pacman --noconfirm -Syyu
pacman --noconfirm -Sy python-pip python-pyparted python-simple-term-menu pkgconfig gcc
- run: pip install --break-system-packages --upgrade pip
# this will install the exact version of mypy that is in the pyproject.toml file
# this will install the exact version of flake8 that is in the pyproject.toml file
- name: Install archinstall dependencies
run: pip install --break-system-packages .[dev]
- run: python --version
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ repos:
- id: mypy
fail_fast: true
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.3
rev: v0.6.5
hooks:
- id: ruff
6 changes: 3 additions & 3 deletions archinstall/default_profiles/applications/pipewire.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Union, Any, TYPE_CHECKING
from typing import Union, Any, TYPE_CHECKING

import archinstall

Expand All @@ -15,7 +15,7 @@ def __init__(self) -> None:
super().__init__('Pipewire', ProfileType.Application)

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return [
'pipewire',
'pipewire-alsa',
Expand All @@ -27,7 +27,7 @@ def packages(self) -> List[str]:
]

def _enable_pipewire_for_all(self, install_session: 'Installer') -> None:
users: Union[User, List[User]] = archinstall.arguments.get('!users', [])
users: Union[User, list[User]] = archinstall.arguments.get('!users', [])
if not isinstance(users, list):
users = [users]

Expand Down
4 changes: 2 additions & 2 deletions archinstall/default_profiles/desktops/awesome.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Any, TYPE_CHECKING
from typing import Any, TYPE_CHECKING

from archinstall.default_profiles.profile import ProfileType
from archinstall.default_profiles.xorg import XorgProfile
Expand All @@ -13,7 +13,7 @@ def __init__(self) -> None:
super().__init__('Awesome', ProfileType.WindowMgr, description='')

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return super().packages + [
'awesome',
'alacritty',
Expand Down
4 changes: 2 additions & 2 deletions archinstall/default_profiles/desktops/bspwm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Optional, Any, TYPE_CHECKING
from typing import Optional, Any, TYPE_CHECKING

from archinstall.default_profiles.profile import ProfileType, GreeterType
from archinstall.default_profiles.xorg import XorgProfile
Expand All @@ -12,7 +12,7 @@ def __init__(self) -> None:
super().__init__('Bspwm', ProfileType.WindowMgr, description='')

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
# return super().packages + [
return [
'bspwm',
Expand Down
4 changes: 2 additions & 2 deletions archinstall/default_profiles/desktops/budgie.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Optional, Any, TYPE_CHECKING
from typing import Optional, Any, TYPE_CHECKING

from archinstall.default_profiles.profile import ProfileType, GreeterType
from archinstall.default_profiles.xorg import XorgProfile
Expand All @@ -12,7 +12,7 @@ def __init__(self) -> None:
super().__init__('Budgie', ProfileType.DesktopEnv, description='')

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return [
"arc-gtk-theme",
"budgie",
Expand Down
4 changes: 2 additions & 2 deletions archinstall/default_profiles/desktops/cinnamon.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional, List, Any, TYPE_CHECKING
from typing import Optional, Any, TYPE_CHECKING

from archinstall.default_profiles.profile import ProfileType, GreeterType
from archinstall.default_profiles.xorg import XorgProfile
Expand All @@ -12,7 +12,7 @@ def __init__(self) -> None:
super().__init__('Cinnamon', ProfileType.DesktopEnv, description='')

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return [
"cinnamon",
"system-config-printer",
Expand Down
4 changes: 2 additions & 2 deletions archinstall/default_profiles/desktops/cosmic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Optional, Any, TYPE_CHECKING
from typing import Optional, Any, TYPE_CHECKING

from archinstall.default_profiles.profile import ProfileType, GreeterType
from archinstall.default_profiles.xorg import XorgProfile
Expand All @@ -12,7 +12,7 @@ def __init__(self) -> None:
super().__init__('cosmic-epoch', ProfileType.DesktopEnv, description='', advanced=True)

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return [
"cosmic",
]
Expand Down
4 changes: 2 additions & 2 deletions archinstall/default_profiles/desktops/cutefish.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional, List, Any, TYPE_CHECKING
from typing import Optional, Any, TYPE_CHECKING

from archinstall.default_profiles.profile import ProfileType, GreeterType
from archinstall.default_profiles.xorg import XorgProfile
Expand All @@ -13,7 +13,7 @@ def __init__(self) -> None:
super().__init__('Cutefish', ProfileType.DesktopEnv, description='')

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return [
"cutefish",
"noto-fonts"
Expand Down
4 changes: 2 additions & 2 deletions archinstall/default_profiles/desktops/deepin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Optional, Any, TYPE_CHECKING
from typing import Optional, Any, TYPE_CHECKING

from archinstall.default_profiles.profile import ProfileType, GreeterType
from archinstall.default_profiles.xorg import XorgProfile
Expand All @@ -12,7 +12,7 @@ def __init__(self) -> None:
super().__init__('Deepin', ProfileType.DesktopEnv, description='')

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return [
"deepin",
"deepin-terminal",
Expand Down
4 changes: 2 additions & 2 deletions archinstall/default_profiles/desktops/enlightenment.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Optional, Any, TYPE_CHECKING
from typing import Optional, Any, TYPE_CHECKING

from archinstall.default_profiles.profile import ProfileType, GreeterType
from archinstall.default_profiles.xorg import XorgProfile
Expand All @@ -12,7 +12,7 @@ def __init__(self) -> None:
super().__init__('Enlightenment', ProfileType.WindowMgr, description='')

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return [
"enlightenment",
"terminology"
Expand Down
4 changes: 2 additions & 2 deletions archinstall/default_profiles/desktops/gnome.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Optional, Any, TYPE_CHECKING
from typing import Optional, Any, TYPE_CHECKING

from archinstall.default_profiles.profile import ProfileType, GreeterType
from archinstall.default_profiles.xorg import XorgProfile
Expand All @@ -12,7 +12,7 @@ def __init__(self) -> None:
super().__init__('Gnome', ProfileType.DesktopEnv, description='')

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return [
'gnome',
'gnome-tweaks'
Expand Down
4 changes: 2 additions & 2 deletions archinstall/default_profiles/desktops/i3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional, List, Any, TYPE_CHECKING
from typing import Optional, Any, TYPE_CHECKING

from archinstall.default_profiles.profile import ProfileType, GreeterType
from archinstall.default_profiles.xorg import XorgProfile
Expand All @@ -12,7 +12,7 @@ def __init__(self) -> None:
super().__init__('i3-wm', ProfileType.WindowMgr, description='')

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return [
'i3-wm',
'i3lock',
Expand Down
4 changes: 2 additions & 2 deletions archinstall/default_profiles/desktops/lxqt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Optional, Any, TYPE_CHECKING
from typing import Optional, Any, TYPE_CHECKING

from archinstall.default_profiles.profile import ProfileType, GreeterType
from archinstall.default_profiles.xorg import XorgProfile
Expand All @@ -15,7 +15,7 @@ def __init__(self) -> None:
# LXQt works with lightdm, but since this is not supported, we will not default to this.
# https://github.com/lxqt/lxqt/issues/795
@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return [
"lxqt",
"breeze-icons",
Expand Down
4 changes: 2 additions & 2 deletions archinstall/default_profiles/desktops/mate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Optional, Any, TYPE_CHECKING
from typing import Optional, Any, TYPE_CHECKING

from archinstall.default_profiles.profile import ProfileType, GreeterType
from archinstall.default_profiles.xorg import XorgProfile
Expand All @@ -12,7 +12,7 @@ def __init__(self) -> None:
super().__init__('Mate', ProfileType.DesktopEnv, description='')

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return [
"mate",
"mate-extra"
Expand Down
4 changes: 2 additions & 2 deletions archinstall/default_profiles/desktops/plasma.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Optional, Any, TYPE_CHECKING
from typing import Optional, Any, TYPE_CHECKING

from archinstall.default_profiles.profile import ProfileType, GreeterType
from archinstall.default_profiles.xorg import XorgProfile
Expand All @@ -12,7 +12,7 @@ def __init__(self) -> None:
super().__init__('KDE Plasma', ProfileType.DesktopEnv, description='')

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return [
"plasma-meta",
"konsole",
Expand Down
4 changes: 2 additions & 2 deletions archinstall/default_profiles/desktops/qtile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional, List, Any, TYPE_CHECKING
from typing import Optional, Any, TYPE_CHECKING

from archinstall.default_profiles.profile import ProfileType, GreeterType
from archinstall.default_profiles.xorg import XorgProfile
Expand All @@ -12,7 +12,7 @@ def __init__(self) -> None:
super().__init__('Qtile', ProfileType.WindowMgr, description='')

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return [
'qtile',
'alacritty'
Expand Down
4 changes: 2 additions & 2 deletions archinstall/default_profiles/desktops/xfce4.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Optional, Any, TYPE_CHECKING
from typing import Optional, Any, TYPE_CHECKING

from archinstall.default_profiles.profile import ProfileType, GreeterType
from archinstall.default_profiles.xorg import XorgProfile
Expand All @@ -12,7 +12,7 @@ def __init__(self) -> None:
super().__init__('Xfce4', ProfileType.DesktopEnv, description='')

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return [
"xfce4",
"xfce4-goodies",
Expand Down
6 changes: 2 additions & 4 deletions archinstall/default_profiles/servers/cockpit.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from typing import List

from archinstall.default_profiles.profile import Profile, ProfileType


Expand All @@ -11,9 +9,9 @@ def __init__(self) -> None:
)

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return ['cockpit', 'udisks2', 'packagekit']

@property
def services(self) -> List[str]:
def services(self) -> list[str]:
return ['cockpit.socket']
8 changes: 4 additions & 4 deletions archinstall/default_profiles/servers/docker.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Union, TYPE_CHECKING
from typing import Union, TYPE_CHECKING

import archinstall

Expand All @@ -17,15 +17,15 @@ def __init__(self) -> None:
)

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return ['docker']

@property
def services(self) -> List[str]:
def services(self) -> list[str]:
return ['docker']

def post_install(self, install_session: 'Installer') -> None:
users: Union[User, List[User]] = archinstall.arguments.get('!users', [])
users: Union[User, list[User]] = archinstall.arguments.get('!users', [])
if not isinstance(users, list):
users = [users]

Expand Down
6 changes: 2 additions & 4 deletions archinstall/default_profiles/servers/httpd.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from typing import List

from archinstall.default_profiles.profile import Profile, ProfileType


Expand All @@ -11,9 +9,9 @@ def __init__(self) -> None:
)

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return ['apache']

@property
def services(self) -> List[str]:
def services(self) -> list[str]:
return ['httpd']
6 changes: 2 additions & 4 deletions archinstall/default_profiles/servers/lighttpd.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from typing import List

from archinstall.default_profiles.profile import Profile, ProfileType


Expand All @@ -11,9 +9,9 @@ def __init__(self) -> None:
)

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return ['lighttpd']

@property
def services(self) -> List[str]:
def services(self) -> list[str]:
return ['lighttpd']
6 changes: 3 additions & 3 deletions archinstall/default_profiles/servers/mariadb.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, TYPE_CHECKING
from typing import TYPE_CHECKING

from archinstall.default_profiles.profile import Profile, ProfileType

Expand All @@ -14,11 +14,11 @@ def __init__(self) -> None:
)

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return ['mariadb']

@property
def services(self) -> List[str]:
def services(self) -> list[str]:
return ['mariadb']

def post_install(self, install_session: 'Installer') -> None:
Expand Down
6 changes: 2 additions & 4 deletions archinstall/default_profiles/servers/nginx.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from typing import List

from archinstall.default_profiles.profile import Profile, ProfileType


Expand All @@ -11,9 +9,9 @@ def __init__(self) -> None:
)

@property
def packages(self) -> List[str]:
def packages(self) -> list[str]:
return ['nginx']

@property
def services(self) -> List[str]:
def services(self) -> list[str]:
return ['nginx']
Loading

0 comments on commit 41b4cfe

Please sign in to comment.