Commit Graph

193 Commits

Author SHA1 Message Date
Daniel Girtler 77558e2be5
Fix 3598 - Utilize script field from config when present (#3611)
* Fix 3598 - Utilize script field from config when present

* Update

* Update
2025-06-20 15:58:14 +10:00
Daniel Girtler 063b9643b4
Add new version indicator in the title of the main menu (#3587)
* Add new version indicator in the title of the main menu

* Update
2025-06-12 07:14:30 +10:00
Anton Hvornum 6c7260fa33
Added a more humane error message on no initial network (#3501)
* Added a more humane error message on no initial network

* Fixed ruff complaints
2025-05-25 13:30:47 +02:00
Daniel Girtler d3f32f308c
Update ruff formatter (#3496)
* Update ruff formatter

* Update
2025-05-24 07:58:42 +00:00
Daniel Girtler 57bd2451e9
Simplify translating of strings (#3479)
* Simplify translation fucntion

* Simplify translation fucntion
2025-05-19 22:33:02 +10:00
Daniel Girtler c67ac97f18
Ruff formatting (#3459)
* Update

* Update
2025-05-15 14:26:41 +02:00
Daniel Girtler fae210dfea
Add optional file encryption for user credentials configuration (#3391)
* Optional encryption of user credentials configuration file

* Update README

* Update

* Update
2025-04-26 20:25:43 +10:00
codefiles 63b2f986c3
Move system info logging to function (#3356) 2025-04-07 13:19:18 +10:00
codefiles 5b06ec7c37
Remove check for sphinx and pylint modules (#3353) 2025-04-07 12:23:11 +10:00
correctmost f100e5110d
Use __all__ in __init__.py files to fix unused-import warnings (#3252)
This commit allows ruff and flake8 ignores to be removed. It also
allows mypy to be run in strict mode by default.
2025-03-13 14:19:05 +11:00
correctmost 057feacf0e
Remove unused stdlib imports from __init__.py files (#3249) 2025-03-13 08:28:24 +11:00
correctmost 6a90760e67
Clean up most no-implicit-reexport warnings from mypy (#3233)
This makes it easier to run mypy --strict from the command line
and should hopefully make it easier to clean up import cycles in
future commits.
2025-03-09 19:50:56 +11:00
correctmost 5f7b16b152
Remove some Any instances from the codebase (#3221) 2025-03-03 08:24:36 +11:00
Daniel Girtler 74b41dea96
Add additional package selector (#3196) 2025-02-24 17:57:26 +11:00
Daniel Girtler b57f7f91cf
Integrate new arguments data structure (#3167)
* Integrate new args dataclass

* Integrate args

* Update

* Update

* Update

* Update
2025-02-20 07:35:59 +11:00
DrakeCoding 71a6c84df0
Fixed grammar under function "get_arguments" (#3152) 2025-01-31 14:24:51 +11:00
Anton Hvornum 6653a4e5a9
Removed requirement for root for pylint (#3138) 2025-01-22 19:46:44 +01:00
Anton Hvornum 7ccc288b14
Bumping to version 3.0.2 (#3137) 2025-01-22 19:03:33 +01:00
codefiles 9163e8c84c
disk: rework manual partitioning (#3071)
* disk: rework manual partitioning

* disk: fix end alignment

* disk: validate config

* test: fix disk config partition overlap
2025-01-08 07:44:03 +11:00
correctmost e712144e5d
Fix falsy-dict-get-fallback ruff warnings (#3077) 2025-01-08 07:38:40 +11:00
codefiles 459b84b6fe
Rework mount point argument (#3041) 2024-12-23 11:04:16 +11:00
correctmost d4c04a83a3
Enable the redefined-outer-name pylint rule and fix warnings (#2964) 2024-11-30 20:01:38 +11:00
Daniel Girtler e51f7adf21
Dataclasses for args and config (#2936)
* Introduce dataclass for arguments and configuration

* Update

* Update
2024-11-26 11:08:36 +01:00
correctmost 8d807c08ee
Use precise type hints for most DeferredTranslation references (#2929)
The remaining "_: Any" instances will require accompanying code
changes.
2024-11-25 18:49:22 +11:00
Anton Hvornum aa80f8cf41
Bump to version 3.0.1 (#2920) 2024-11-23 11:45:32 +01:00
codefiles 7fd726f03f
Fix log disk states (#2902) 2024-11-21 10:50:43 +11:00
correctmost b3421c0a82
Sort and format imports in scripts/, tui/, and top-level files (#2874) 2024-11-19 08:16:38 +11:00
correctmost 7776f82cbc
Reduce the max line length from 220 to 160 by wrapping some lines (#2867)
This will make it easier to auto-format import sections.
2024-11-19 07:50:53 +11:00
correctmost 97d6d84c3c
Replace most Union[] instances with pipe syntax (#2843) 2024-11-18 20:07:14 +11:00
Anton Hvornum c16df5d80e
Bump to version 3.0.0 (#2847) 2024-11-17 10:02:51 +01:00
correctmost e23e5e7f2a
Enable stricter global mypy defaults (#2817)
Some checks only need to be disabled for the lib/ directory now.
2024-11-16 13:56:43 +11:00
correctmost c87c723549
Remove most deprecated typing.Dict usage (#2813) 2024-11-16 11:57:46 +11:00
Daniel Girtler 88b91ae201
Integrate new curses menu (#2663)
* Edit text menu

* Fix alignment

* Scroll functionality

* Fix flake8

* Migrate locales menu

* Fix language translation

* Fix interrupt

* Fix flake8

* Edit mode preset

* Convert print to tui prints

* Fix mypy

* Fix cycling through long menu

* Fix profile view

* Fix scrolling

* Fix scrolling

* Fix mypy

* Fix swiss script

* Display asterisk for passwords

* Corrected a variable usage in the local mirror parsing

* Made sure that curses menu selection on mirrors use url object from mirror.url instead of the class instance

* Fixed mypy type on mirror list

---------

Co-authored-by: Torxed <torxed@archlinux.org>
2024-11-15 08:23:22 +01:00
Daniel Girtler 83ece36ec3
Ignore disk encryption config when no password found (#2779) 2024-11-07 13:08:42 +01:00
Anton Hvornum 3d35da71df
Bumping version to: v2.8.6 (#2656) 2024-08-28 22:45:46 +02:00
correctmost 35c8eb3394
Fix unnecessary f-strings and enable flake8 rule (#2653) 2024-08-29 03:01:55 +10:00
correctmost 62d66e1caf
Fix most mypy errors in archinstall/scripts/, docs/, and the __init__ file (#2641) 2024-08-29 00:24:08 +10:00
Anton Hvornum 74f4fb02cd
Bumping version to: v2.8.5 (#2645) 2024-08-28 07:57:05 +02:00
Anton Hvornum fe5e7cdbf7
Bumping version to: v2.8.4 (#2633) 2024-08-26 13:03:49 +02:00
Anton Hvornum 1097e5ca17
Bumping version to: v2.8.3 (#2627) 2024-08-25 10:20:32 +02:00
Anton Hvornum f6776f3801
Bumping version to: v2.8.2 (#2616) 2024-08-17 10:07:02 +02:00
Daniel E Rodriguez Rivera 58d74ea237
Refactor Argument Parsing Logic (#2605)
* Update Spanish translation for 'greeter'

* Moved the os.execve call below the debug logging statement in SysCommandWorker

* Fix call to removed function in DesktopProfile class

* Refactor: Move precondition check for '=' to the beginning of the loop

This commit moves the check for the '=' element to the start of the while loop in the `parse_unspecified_argument_list` function. This change improves code readability and ensures that the precondition is evaluated before processing other elements, enhancing the overall flow of the argument parsing logic.

* Refactor: Remove redundant 'else' statement in argument parsing logic

This commit simplifies the control flow in the `parse_unspecified_argument_list` function by removing a redundant 'else' block. The logic is streamlined to improve readability and maintainability while preserving the original functionality. The removal of unnecessary nesting helps clarify the conditions under which elements are processed.

* Refactor: Remove redundant 'else' statement in argument parsing logic

This commit simplifies the control flow in the `parse_unspecified_argument_list` function by removing a redundant 'else' block. The logic is streamlined to improve readability and maintainability while preserving the original functionality. The removal of unnecessary nesting helps clarify the conditions under which elements are processed.

* Replace conditional validation with filtering

This commit modifies the `parse_unspecified_argument_list` function to filter out unwanted elements from the `unknowns` list instead of using a conditional check with an `if` statement. This change improves code readability and efficiency by utilizing list comprehension to create a new list that excludes elements equal to "=".
2024-08-05 12:38:53 +02:00
Kenneth Seet 0f1c8ab4be
Update user permission check for --help (#2568)
* Update user permission check for --help

* Fix code style

* Fix code style

* Fix docstring

* Fix newline

* Fix newline

* Fix argument error

* Fix formatting
2024-07-11 11:43:58 +10:00
Anton Hvornum 354fa5a2e4
Bumping version to v2.8.1 (#2543) 2024-06-23 10:13:22 +02:00
Daniel Girtler 5c180f0741
New menu implementation with curses (#2506)
* TUI

* Fix menu iterating

* Add help menu

* Add column menu

* Fix filter

* Tweaked import statement

---------

Co-authored-by: Anton Hvornum <torxed@archlinux.org>
2024-06-06 22:31:15 +02:00
Anton Hvornum 7d9e9d8ba0
Bumping version to: v2.8.0 (#2460) 2024-04-15 06:50:17 +02:00
Rafael Fontenelle 0d5e1cf752
Fix misspellings (#2306) 2024-03-07 13:19:44 +01:00
Anton Hvornum 74476de1f1
Version bump 2.7.2 (#2387) 2024-03-07 12:27:26 +01:00
codefiles 5db4456dba
Restrict UKI to supported options (#2280) 2023-12-01 15:59:44 +01:00
Anton Hvornum c13d5fae05
Preparing release: v2.7.1 (#2272) 2023-11-28 17:02:54 +01:00