Skip to content

Commit 7398e27

Browse files
authored
Typo and grammar fixes (#3970)
* Menu now filters and sorts using priority, improving UX. * Refactor: improve logic, removed redundancy * Refactor: improve logic, removed redundancy * Typo and grammar fixes * Typo and grammar fixes * Fix comment formatting in .gitlab-ci.yml * Fix comment * Removed code from separate pull request * Update menu_item.py * removed white space * Remove unnecessary blank lines in menu_item.py >:(
1 parent d176b95 commit 7398e27

File tree

24 files changed

+35
-35
lines changed

24 files changed

+35
-35
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ flake8:
3636
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3737

3838
# We currently do not have unit tests implemented but this stage is written in anticipation of their future usage.
39-
# When a stage name is preceeded with a '.' it's treated as "disabled" by GitLab and is not executed, so it's fine for it to be declared.
39+
# When a stage name is preceded with a '.' it's treated as "disabled" by GitLab and is not executed, so it's fine for it to be declared.
4040
.pytest:
4141
stage: test
4242
tags:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ archinstall --config <path to user config file or URL> --creds <path to user cre
6262
```
6363

6464
### Credentials configuration file encryption
65-
By default all user account credentials are hashed with `yescrypt` and only the hash is stored in the saved `user_credentials.json` file.
65+
By default, all user account credentials are hashed with `yescrypt` and only the hash is stored in the saved `user_credentials.json` file.
6666
This is not possible for disk encryption password which needs to be stored in plaintext to be able to apply it.
6767

6868
However, when selecting to save configuration files, `archinstall` will prompt for the option to encrypt the `user_credentials.json` file content.
@@ -75,7 +75,7 @@ there are multiple ways to provide the decryption key:
7575

7676
# Help or Issues
7777

78-
If you come across any issues, kindly submit your issue here on Github or post your query in the
78+
If you come across any issues, kindly submit your issue here on GitHub or post your query in the
7979
[discord](https://discord.gg/aDeMffrxNg) help channel.
8080

8181
When submitting an issue, please:

archinstall/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def run_as_a_module() -> None:
138138
text = (
139139
'Archinstall experienced the above error. If you think this is a bug, please report it to\n'
140140
'https://github.com/archlinux/archinstall and include the log file "/var/log/archinstall/install.log".\n\n'
141-
"Hint: To extract the log from a live ISO \ncurl -F'file=@/var/log/archinstall/install.log' https://0x0.st\n"
141+
"Hint: To extract the log from a live ISO \ncurl -F 'file=@/var/log/archinstall/install.log' https://0x0.st\n"
142142
)
143143

144144
warn(text)

archinstall/default_profiles/desktops/enlightenment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from archinstall.default_profiles.xorg import XorgProfile
55

66

7-
class EnlighenmentProfile(XorgProfile):
7+
class EnlightenmentProfile(XorgProfile):
88
def __init__(self) -> None:
99
super().__init__('Enlightenment', ProfileType.WindowMgr)
1010

archinstall/lib/applications/application_menu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ def __init__(
1919
else:
2020
self._app_config = ApplicationConfiguration()
2121

22-
menu_optioons = self._define_menu_options()
23-
self._item_group = MenuItemGroup(menu_optioons, checkmarks=True)
22+
menu_options = self._define_menu_options()
23+
self._item_group = MenuItemGroup(menu_options, checkmarks=True)
2424

2525
super().__init__(
2626
self._item_group,

archinstall/lib/args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def from_config(cls, args_config: dict[str, Any], args: Arguments) -> 'ArchConfi
232232
arch_config.auth_config = AuthenticationConfiguration()
233233
arch_config.auth_config.root_enc_password = root_password
234234

235-
# DEPRECATED: backwards copatibility
235+
# DEPRECATED: backwards compatibility
236236
users: list[User] = []
237237
if args_users := args_config.get('!users', None):
238238
users = User.parse_arguments(args_users)

archinstall/lib/authentication/authentication_menu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def __init__(self, preset: AuthenticationConfiguration | None = None):
2121
else:
2222
self._auth_config = AuthenticationConfiguration()
2323

24-
menu_optioons = self._define_menu_options()
25-
self._item_group = MenuItemGroup(menu_optioons, checkmarks=True)
24+
menu_options = self._define_menu_options()
25+
self._item_group = MenuItemGroup(menu_options, checkmarks=True)
2626

2727
super().__init__(
2828
self._item_group,

archinstall/lib/crypt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def crypt_gen_salt(prefix: str | bytes, rounds: int) -> bytes:
4848

4949
def crypt_yescrypt(plaintext: str) -> str:
5050
"""
51-
By default chpasswd in Arch uses PAM to to hash the password with crypt_yescrypt
51+
By default chpasswd in Arch uses PAM to hash the password with crypt_yescrypt
5252
the PAM code https://github.com/linux-pam/linux-pam/blob/master/modules/pam_unix/support.c
5353
shows that the hashing rounds are determined from YESCRYPT_COST_FACTOR in /etc/login.defs
5454
If no value was specified (or commented out) a default of 5 is choosen

archinstall/lib/disk/disk_menu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def __init__(self, disk_layout_config: DiskLayoutConfiguration | None):
5151
btrfs_snapshot_config=snapshot_config,
5252
)
5353

54-
menu_optioons = self._define_menu_options()
55-
self._item_group = MenuItemGroup(menu_optioons, sort_items=False, checkmarks=True)
54+
menu_options = self._define_menu_options()
55+
self._item_group = MenuItemGroup(menu_options, sort_items=False, checkmarks=True)
5656

5757
super().__init__(
5858
self._item_group,

archinstall/lib/disk/encryption_menu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def __init__(
3939
self._device_modifications = device_modifications
4040
self._lvm_config = lvm_config
4141

42-
menu_optioons = self._define_menu_options()
43-
self._item_group = MenuItemGroup(menu_optioons, sort_items=False, checkmarks=True)
42+
menu_options = self._define_menu_options()
43+
self._item_group = MenuItemGroup(menu_options, sort_items=False, checkmarks=True)
4444

4545
super().__init__(
4646
self._item_group,

0 commit comments

Comments
 (0)