renovate[bot]
01f1cd314f
fix(deps): update dependency ruff to v0.9.10 ( #3231 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-08 10:02:29 +11:00
renovate[bot]
d6ee5a66b2
fix(deps): update dependency pytest to v8.3.5 ( #3220 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-03 07:33:59 +11:00
renovate[bot]
4f72c0177b
fix(deps): update dependency ruff to v0.9.9 ( #3210 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-02 10:39:37 +11:00
correctmost
4c2ec5deba
Enable --strict-bytes checks in mypy ( #3189 )
...
Strict-bytes checks will be enabled by default in mypy 2.0, so this
commit will help prevent violations from being introduced into the
codebase.
2025-02-22 14:24:52 +11:00
renovate[bot]
957fa06ade
fix(deps): update dependency ruff to v0.9.7 ( #3187 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-21 08:14:20 +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
renovate[bot]
c00f609c1b
fix(deps): update dependency flake8 to v7.1.2 ( #3178 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-17 17:06:43 +11:00
renovate[bot]
604884fa07
fix(deps): update dependency ruff to v0.9.6 ( #3170 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-11 18:24:59 +11:00
renovate[bot]
9e88cd0cc8
fix(deps): update dependency ruff to v0.9.5 ( #3162 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-08 11:53:12 +11:00
renovate[bot]
8c4634c4d6
fix(deps): update dependency mypy to v1.15.0 ( #3158 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-05 17:00:51 +11:00
renovate[bot]
77059e8819
fix(deps): update dependency ruff to v0.9.4 ( #3151 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-31 17:08:44 +11:00
correctmost
7b0efd35f0
Remove unneeded mypy override for archinstall.scripts ( #3147 )
...
The override is no longer needed after commit fc63d45fe6 .
2025-01-29 08:14:45 +11:00
renovate[bot]
4f53961392
fix(deps): update dependency pylint to v3.3.4 ( #3146 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-29 07:33:20 +11:00
renovate[bot]
0f6f5dae86
fix(deps): update dependency pydantic to v2.10.6 ( #3143 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-25 10:04:15 +11:00
renovate[bot]
59b90d65a1
fix(deps): update dependency ruff to v0.9.3 ( #3141 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 09:58:55 +11:00
renovate[bot]
2bd4344d43
fix(deps): update dependency pre-commit to v4.1.0 ( #3131 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-21 12:17:25 +11:00
renovate[bot]
99fe401979
fix(deps): update dependency ruff to v0.9.2 ( #3125 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-17 09:28:17 +11:00
correctmost
c94d0a56d9
Enable most flake8-commas rules in ruff and fix warning ( #3122 )
2025-01-15 16:30:13 +11:00
correctmost
c0a2de4330
Enable the set-attr-with-constant ruff rule and fix warnings ( #3114 )
2025-01-12 15:02:06 +11:00
correctmost
fd77b5d4ce
Enable the strip-with-multi-characters ruff rule ( #3112 )
...
Commit 4212357c6 fixed the remaining warnings.
2025-01-12 12:39:10 +11:00
correctmost
457e790bd0
Enable most flake8-bugbear rules in ruff ( #3110 )
2025-01-12 11:51:06 +11:00
correctmost
e7f2a8c203
Fix some mypy warnings in archinstall/lib/ ( #3103 )
2025-01-11 15:44:43 +11:00
renovate[bot]
39c7eda352
fix(deps): update dependency ruff to v0.9.1 ( #3097 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-11 15:37:33 +11:00
renovate[bot]
ad015033b8
fix(deps): update dependency ruff to v0.9.0 ( #3095 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 08:21:18 +11:00
renovate[bot]
2778ca60f6
fix(deps): update dependency pydantic to v2.10.5 ( #3092 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 08:19:21 +11:00
correctmost
10a12dc855
Fix mutable-class-default ruff warnings ( #3087 )
2025-01-08 10:23:07 +11:00
renovate[bot]
34ef6527ce
fix(deps): update dependency pylint-pydantic to v0.3.5 ( #3086 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-08 07:52:24 +11:00
correctmost
25b7bbb0ed
Add if-key-in-dict-del ruff rule to ignore list ( #3082 )
...
The rule is concerned with code style rather than correctness or
performance.
2025-01-08 07:41:25 +11:00
renovate[bot]
984fa6af46
fix(deps): update dependency ruff to v0.8.6 ( #3074 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-08 07:34:31 +11:00
renovate[bot]
f1f08c811b
fix(deps): update dependency ruff to v0.8.5 ( #3064 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-03 15:52:58 +11:00
renovate[bot]
cb6417be6e
fix(deps): update dependency mypy to v1.14.1 ( #3057 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-03 14:13:00 +11:00
renovate[bot]
77f5b075b6
fix(deps): update dependency pylint to v3.3.3 ( #3046 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-03 14:12:46 +11:00
renovate[bot]
a8c2a5a54f
fix(deps): update dependency mypy to v1.14.0 ( #3036 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-22 10:38:20 +11:00
renovate[bot]
5a82ce7719
Update dependency ruff to v0.8.4 ( #3029 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-20 12:01:09 +11:00
renovate[bot]
05441a4c11
Update dependency pydantic to v2.10.4 ( #3026 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-19 17:50:14 +11:00
renovate[bot]
7b09c5a7ca
Update dependency ruff to v0.8.3 ( #3018 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-15 09:18:03 +11:00
renovate[bot]
27df486dda
Update dependency pylint-pydantic to v0.3.4 ( #3017 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 15:54:31 +11:00
renovate[bot]
2d4128fd84
Update dependency ruff to v0.8.2 ( #3001 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-06 17:17:03 +11:00
renovate[bot]
89cd718462
Update dependency pydantic to v2.10.3 ( #2999 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-04 21:05:29 +11:00
renovate[bot]
03e41d3721
Update dependency pylint to v3.3.2 ( #2992 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-02 18:18:21 +11:00
renovate[bot]
7d0acbcc6d
Update dependency pylint-pydantic to v0.3.3 ( #2995 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-02 18:17:52 +11:00
renovate[bot]
ac75dda390
Update dependency pytest to v8.3.4 ( #2989 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-02 13:12:05 +11:00
correctmost
60842bd1cf
Enable bare-except linter rules and fix warnings ( #2988 )
2024-12-01 18:34:51 +11:00
correctmost
0bc2ad700f
Enable the "unreachable" pylint warning and remove unused code ( #2987 )
...
The os.fsync call causes an "invalid argument" OSError when it
actually runs, so it has been removed altogether.
Closes #2773
2024-12-01 18:34:00 +11:00
correctmost
fcf9658f8f
Disable some rules that warn when using ruff's preview mode ( #2985 )
2024-12-01 17:50:33 +11:00
correctmost
8fa5ec15af
Enable the yield-in-for-loop ruff rule and fix warnings ( #2984 )
2024-12-01 17:50:11 +11:00
correctmost
af043afa88
Enable the unnecessary-lambda pylint rule and fix warnings ( #2983 )
2024-12-01 17:44:39 +11:00
correctmost
760963f7a6
Enable the unused-variable pylint rule and fix warnings ( #2978 )
2024-12-01 17:41:34 +11:00
correctmost
6a6642a9c1
Replace some Any instances with specific type hints ( #2973 )
2024-12-01 09:17:10 +11:00
correctmost
0a1d036750
Remove unused VersionDef class ( #2972 )
...
This allows the comparison-with-callable pylint rule to be enabled.
2024-12-01 08:40:38 +11:00
correctmost
11f8490b59
Enable the bad-indentation pylint rule and fix space indentations ( #2968 )
2024-11-30 22:54:53 +11:00
correctmost
1e6492d34a
Enable the printf-string-formatting ruff rule and fix warnings ( #2967 )
2024-11-30 22:54:20 +11:00
correctmost
b0222111f5
Enable the redefined-builtin pylint rule and fix warnings ( #2966 )
2024-11-30 22:53:54 +11:00
renovate[bot]
6f42eba2f4
Update dependency ruff to v0.8.1 ( #2955 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-30 22:52:03 +11:00
correctmost
604526c3c8
Enable the f-string ruff rule and fix warnings ( #2965 )
2024-11-30 20:03:09 +11:00
correctmost
d4c04a83a3
Enable the redefined-outer-name pylint rule and fix warnings ( #2964 )
2024-11-30 20:01:38 +11:00
correctmost
544400606f
Enable mypy checks for tests/ files ( #2963 )
2024-11-30 20:00:35 +11:00
correctmost
2825818af6
Enable useless-parent-delegation pylint rule and fix warnings ( #2962 )
2024-11-30 19:59:28 +11:00
correctmost
80eebcff4f
Enable the explicit-f-string-type-conversion rule and fix warnings ( #2954 )
2024-11-29 06:43:13 +11:00
renovate[bot]
7b291a6681
Update dependency pydantic to v2.10.2 ( #2942 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-28 22:45:34 +11:00
correctmost
e3ff449bc4
Enable the Ruff-specific ruleset ( #2951 )
2024-11-28 20:15:30 +11:00
correctmost
f314b7be54
Replace some Any instances with specific type hints ( #2950 )
2024-11-28 20:14:58 +11:00
renovate[bot]
8646c9aac2
Update dependency pytest to v8 ( #2941 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-27 18:05:12 +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
correctmost
46e4e28294
Bump the minimum Python version to 3.12 ( #2933 )
2024-11-25 18:45:50 +11:00
correctmost
d89ae04e0e
Delete ignore directive for Ruff rule that was removed ( #2928 )
...
The unpacked-list-comprehension rule was removed in Ruff 0.8.0.
2024-11-25 14:25:53 +11:00
renovate[bot]
4cbf0f49db
Update dependency ruff to v0.8.0 ( #2910 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-22 22:15:11 +11:00
renovate[bot]
1579483193
Update dependency pydantic to v2.10.1 ( #2901 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-22 22:05:11 +11:00
correctmost
f3f7700945
Remove unused Any instances from TYPE_CHECKING blocks ( #2878 )
...
This will make it easier to start removing more Any instances from
the codebase.
2024-11-19 18:30:41 +11:00
correctmost
3255744278
Sort and format remaining imports ( #2877 )
...
This commit also enables isort rules in the Ruff config.
2024-11-19 11:18:47 +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
80b4dab092
Remove remaining Optional and Union usage from the codebase ( #2868 )
2024-11-18 20:59:08 +11:00
correctmost
9626965982
Remove remaining deprecated typing.Dict and typing.List usage ( #2859 )
2024-11-18 20:02:35 +11:00
correctmost
80ad332d31
Enable multiple-statements-on-one-line-colon rule and fix warnings ( #2845 )
2024-11-17 19:39:14 +11:00
correctmost
f783042e28
Only skip unused-import checks in __init__.py files ( #2844 )
...
This will help catch unused imports in other files when using Ruff.
2024-11-17 12:08:51 +11:00
correctmost
f13f3d53b6
Enable arguments-renamed Pylint rule and fix warnings ( #2842 )
2024-11-17 11:03:18 +11:00
correctmost
87fe1dbd8a
Enable most of the pyupgrade checks in Ruff ( #2834 )
2024-11-16 21:21:10 +11:00
Daniel Girtler
0f2e00952f
Remove redundant simple-term-menu package ( #2824 )
...
* Remove redundant simple-term-menu package
* Update PKGBUILD
Added missing python package (this simply reflects a change in upstream PKGBUILD)
---------
Co-authored-by: Anton Hvornum <torxed@archlinux.org>
2024-11-16 10:53:33 +01:00
correctmost
3d2673ac78
Enable the Pylint-warnings rules in Ruff ( #2823 )
...
The rule implementations can differ between Ruff and Pylint, so
enable them both for maximum coverage.
2024-11-16 18:28:00 +11:00
correctmost
a71fe41585
Remove unnecessary mypy overrides for lib/models/mirrors.py ( #2821 )
2024-11-16 17:07:49 +11:00
correctmost
1af5135013
Enable the flake8-implicit-str-concat Ruff rules ( #2819 )
2024-11-16 17:07:14 +11:00
correctmost
3b3dca7bc1
Enable the UP025 Ruff rule to flag unnecessary Unicode prefixes ( #2820 )
2024-11-16 14:04:15 +11: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
316711d261
Enable flake8-datetimez and flake8-future-annotations Ruff checks ( #2815 )
2024-11-16 11:59:09 +11:00
correctmost
091a070e4e
Enable the f-string-without-interpolation Pylint rule ( #2814 )
2024-11-16 11:58:23 +11:00
correctmost
d9fa2718ec
Make mypy checks more strict for lib/ and tui/ directories ( #2811 )
2024-11-16 10:14:25 +11:00
renovate[bot]
360118f68f
fix(deps): update dependency ruff to v0.7.4 ( #2808 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-16 08:31:58 +11:00
correctmost
1b40067e5a
Enable the expression-not-assigned Pylint rule ( #2809 )
...
Commit 88b91ae201 fixed the last instance that existed in the
codebase.
2024-11-16 07:47:59 +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
renovate[bot]
fbc9431697
fix(deps): update dependency ruff to v0.7.3 ( #2785 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-09 07:48:01 +11:00
correctmost
0370e893ac
Enable the self-assigning-variable Pylint warning ( #2772 )
2024-11-04 18:34:05 +01:00
correctmost
aecf3ea553
Add Pylint support and enable Pylint CI checks ( #2658 )
2024-11-04 14:30:28 +01:00
renovate[bot]
69294e1f9f
fix(deps): update dependency ruff to v0.7.2 ( #2767 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-02 18:51:14 +11:00
renovate[bot]
eaff04a84f
chore(deps): update dependency ruff to v0.7.1 ( #2758 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-25 10:21:39 +11:00
renovate[bot]
2c4a62c049
chore(deps): update dependency mypy to v1.13.0 ( #2751 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-23 22:15:21 +11:00
renovate[bot]
912c9c5a83
chore(deps): update dependency mypy to v1.12.1 ( #2742 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-20 22:29:16 +11:00
renovate[bot]
eb44bc8eb9
chore(deps): update dependency ruff to v0.7.0 ( #2737 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-18 08:21:24 +11:00
renovate[bot]
abfdc1e73a
chore(deps): update dependency mypy to v1.12.0 ( #2731 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-15 08:00:57 +11:00
renovate[bot]
e749e67a84
chore(deps): update dependency pre-commit to v4.0.1 ( #2724 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-10 07:49:32 +11:00
renovate[bot]
d9abf9d5b7
chore(deps): update dependency pre-commit to v4 ( #2721 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-06 11:15:35 +11:00
renovate[bot]
0fd306b257
chore(deps): update dependency ruff to v0.6.9 ( #2718 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-05 08:20:04 +10:00
renovate[bot]
f0672b011e
chore(deps): update dependency ruff to v0.6.8 ( #2699 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-27 06:45:06 +10:00
renovate[bot]
5526e39679
chore(deps): update dependency ruff to v0.6.7 ( #2694 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-22 10:04:06 +10:00
renovate[bot]
92db197f75
Update dependency ruff to v0.6.6 ( #2690 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-21 17:50:06 +10:00
renovate[bot]
a1c9e1cf8d
Update dependency pydantic to v2.9.2 ( #2688 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-18 07:14:13 +10:00
renovate[bot]
9de2df7ef0
Update dependency ruff to v0.6.5 ( #2682 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-14 08:08:48 +10:00
renovate[bot]
3c94e96064
Update dependency pydantic to v2.9.1 ( #2677 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-09 21:55:18 +10:00
renovate[bot]
7c08822d08
Update dependency pydantic to v2.9.0 ( #2667 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-06 11:50:46 +10:00
renovate[bot]
a817fe2404
Update dependency ruff to v0.6.4 ( #2665 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-06 10:54:16 +10:00
renovate[bot]
588d69bd7d
Update dependency ruff to v0.6.3 ( #2660 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-30 02:24:32 +10:00
correctmost
8391668a2e
Add ruff linting support ( #2654 )
2024-08-29 13:51:12 +02:00
correctmost
7b5f1f72f9
Expand mypy checks to include more files and more checks ( #2651 )
...
This commit also centralizes the mypy configuration in one spot.
2024-08-29 00:39:22 +10:00
renovate[bot]
211ce2d65b
chore(deps): update dependency mypy to v1.11.2 ( #2626 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 15:21:01 +10:00
renovate[bot]
727368e09d
chore(deps): update dependency dev/flake8 to v7.1.1 ( #2607 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-05 07:34:19 +10:00
Anton Hvornum
98518e444a
Use `/mirrors/status/json/` instead of `/mirrorlist/` to get mirror lists ( #2599 )
...
* Using JSON endpoint instead of ASCII endpoint for mirror listing, as the JSON endpoint is cached and easier to parse
* Added a TODO to handle unknown regional mirrors (which lacks info in the backend)
* Filtered out 'bad' mirrors. Also added a sorting mechanism that uses the mirrors 'score' rather than just the URL name. This will emulate the reflector.service/rankmirrors behavior and thus reducing the need to re-rank the mirrors.
* Added the ability to sort mirrors via latency or download speed using sorted(mirror_list, key=lambda mirror: (mirror.score, mirror.speed)) - but I have not implemented the sorting via the menu yet, and I have not integrated the new MirrorStatus model into the handling of URL's. I still need to figure out where the {region: [url, url]} is being used, so that i can convert to {region: [mirror.url, mirror.url]} logic.
* Converting MirrorStatus model to {mirror: [url, url]}
* Added debug information for /var/log/archinstall/install.log
* Fixing flake8
* Fixed issue where 'dead' mirrors have no score, and thus can't be round():ed
* Forgot to return model validation data after validation
* Improving debug/info output
* Reverting change in #2350 - Writing over instead of appending to mirrorlist
* Mirror URL's reported by the JSON endpoint does not contain the repo format, only the base location for the mirror. So we have to adjust for this.
* pydantic did not honor 'private' variables in 'before' model validator, had to change to 'after' instead.
* Sorted out mypy typing matching the new MirrorStatus model
* Added pydantic as a dependency, it's time!
* Updated workflow to include pydantic
* Added return values from model @property decorators.
2024-08-02 15:24:44 +02:00
renovate[bot]
2f4bb97483
Update dependency dev/mypy to v1.11.1 ( #2602 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 12:32:01 +10:00
renovate[bot]
0e8efecfa1
Update dependency dev/pre-commit to v3.8.0 ( #2594 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-29 08:15:37 +10:00
Daniel Girtler
32bc37545e
Upgrade mypy 1.11 ( #2588 )
...
* Upgrade mypy 1.11
* Update
* Update
* Remove TProfile type
2024-07-27 07:23:47 +10:00
renovate[bot]
aae4c5d35b
Update dependency dev/mypy to v1.10.1 ( #2549 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-25 12:03:40 +10:00
renovate[bot]
8c9802078c
Update dependency dev/flake8 to v7.1.0 ( #2537 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-16 08:53:41 +10:00
Daniel Girtler
aa87fb1db5
Strict mypy - Phase 1 ( #2533 )
...
* Strict mypy for examples/
2024-06-13 21:35:54 +02:00
Anton Hvornum
195eb0ba6d
Fixing issue with `python -m build --wheel` generating "_Warning: Package 'archinstall.default_profiles' is absent from the `packages` configuration" ( #2499 )
...
* Fixing issue of: _Warning: Package 'archinstall.default_profiles' is absent from the 'packages' configuration. x50+
* Corrected the package name from 'where' to 'archinstall'
* Undoing change to 'package-data'
2024-05-13 15:17:05 +02:00
renovate[bot]
20f802dfc3
chore(deps): update dependency dev/pre-commit to v3.7.1 ( #2497 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-11 16:27:04 +10:00
Anton Hvornum
3381cd5567
Changing to use github archive as dependency-url for pyparted as there hasn't been an update on pypi.org for pyparted in almost 12 months. Tracking issue https://github.com/dcantrell/pyparted/issues/106 ( #2494 )
2024-05-09 23:49:43 +02:00
renovate[bot]
eb36a94781
chore(deps): update dependency dev/mypy to v1.10.0 ( #2476 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-25 10:12:15 +10:00
renovate[bot]
5aa616e70d
chore(deps): update dependency dev/pre-commit to v3.7.0 ( #2434 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-16 20:28:10 +10:00
renovate[bot]
635ae335be
chore(deps): update dependency dev/mypy to v1.9.0 ( #2395 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-10 09:33:41 +01:00
renovate[bot]
1c071f3bb3
chore(deps): update dependency dev/mypy to v1.8.0 ( #2308 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-07 15:10:19 +01:00
renovate[bot]
3df7d91bff
chore(deps): update dependency simple-term-menu to v1.6.4 ( #2303 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-07 15:06:41 +01:00
renovate[bot]
e4f072315d
chore(deps): update dependency dev/pre-commit to v3.6.2 ( #2297 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-07 15:06:29 +01:00
renovate[bot]
f27c55d170
Update dependency dev/mypy to v1.7.1 ( #2256 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-24 08:13:19 +01:00
Alan Barzilay
f6446323fc
pyproject.toml: add missing dependencies ( #2257 )
...
we were missing 2 dependencies, pyparted and systemd-python(optional), that would lead pip installations to fail sometimes.
I added them and attributed systemd_python to a new optional dependency group called log since it only seems to be used for system logging:
64c91cdbcb/archinstall/lib/output.py (L133)
2023-11-23 23:28:12 +01:00
renovate[bot]
61d549fbab
Update dependency dev/mypy to v1.7.0 ( #2209 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-23 18:14:31 +01:00
Anton Hvornum
db326590ba
Redirect readthedocs ( #2244 )
...
* Adding permanent redirect for readthedocs
* Have to remove pyparted because readthedocs can't build it
* Removed pyparted from pyproject.toml as readthedocs read that one too afterall.
2023-11-22 22:12:29 +01:00
renovate[bot]
f6106324eb
chore(deps): update dependency simple-term-menu to v1.6.3 ( #2208 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-09 20:10:21 +01:00
renovate[bot]
af6713e8df
chore(deps): update dependency simple-term-menu to v1.6.2 ( #2203 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-09 12:50:26 +01:00
renovate[bot]
78ab858b3b
chore(deps): update dependency dev/mypy to v1.6.1 ( #2184 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-18 08:00:16 +02:00
renovate[bot]
3c2ed1c121
chore(deps): update dependency dev/pre-commit to v3.5.0 ( #2164 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-13 20:44:04 +02:00
renovate[bot]
d1ea6db9aa
chore(deps): update dependency dev/mypy to v1.6.0 ( #2155 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-13 09:56:36 +02:00
Daniel Girtler
edbc135903
Extend the mypy checks ( #2120 )
...
* Extend the mypy checks
* Update
* Update
* Update
---------
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-10-03 18:31:17 +11:00
renovate[bot]
4f9e8d2381
chore(deps): update dependency dev/pre-commit to v3.4.0 ( #2090 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-22 11:46:10 +02:00
renovate[bot]
d6ef345fc3
chore(deps): update dependency dev/mypy to v1.5.1 ( #2089 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-22 11:45:03 +02:00
Anton Hvornum
5b102b0228
Adding python-simple-term-menu to the dependency list ( #1901 )
...
* Adding python-simple-term-menu to the dependency list
* Added dependencies to all binaries we call, such as 'ps' and 'mkfs' etc
* Sorted the depends list - just for peace of mind
* Bumped version in prep for release of rc1, also updated README a bit
* Removed older python versions from classifiers
2023-06-28 14:22:07 +02:00
Daniel Girtler
57ebc42ffd
Fix 1875 ( #1880 )
...
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-06-28 13:34:54 +02:00
Daniel Girtler
89cefb9a1c
Cleanup imports and unused code ( #1801 )
...
* Cleanup imports and unused code
* Update build check
* Keep deprecation exception
* Simplify logging
---------
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-05-11 18:30:09 +02:00
Daniel Girtler
ec4ecbcb7a
Full mypy compliance and small fixes ( #1777 )
...
* Fix mypy compliance
---------
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
2023-05-03 16:36:46 +02:00
Daniel Girtler
00b0ae7ba4
PyParted and a large rewrite of the underlying partitioning ( #1604 )
...
* Invert mypy files
* Add optional pre-commit hooks
* New profile structure
* Serialize profiles
* Use profile instead of classmethod
* Custom profile setup
* Separator between back
* Support profile import via url
* Move profiles module
* Refactor files
* Remove symlink
* Add user to docker group
* Update schema description
* Handle list services
* mypy fixes
* mypy fixes
* Rename profilesv2 to profiles
* flake8
* mypy again
* Support selecting DM
* Fix mypy
* Cleanup
* Update greeter setting
* Update schema
* Revert toml changes
* Poc external dependencies
* Dependency support
* New encryption menu
* flake8
* Mypy and flake8
* Unify lsblk command
* Update bootloader configuration
* Git hooks
* Fix import
* Pyparted
* Remove custom font setting
* flake8
* Remove default preview
* Manual partitioning menu
* Update structure
* Disk configuration
* Update filesystem
* luks2 encryption
* Everything works until installation
* Btrfsutil
* Btrfs handling
* Update btrfs
* Save encryption config
* Fix pipewire issue
* Update mypy version
* Update all pre-commit
* Update package versions
* Revert audio/pipewire
* Merge master PRs
* Add master changes
* Merge master changes
* Small renaming
* Pull master changes
* Reset disk enc after disk config change
* Generate locals
* Update naming
* Fix imports
* Fix broken sync
* Fix pre selection on table menu
* Profile menu
* Update profile
* Fix post_install
* Added python-pyparted to PKGBUILD, this requires [testing] to be enabled in order to run makepkg. Package still works via python -m build etc.
* Swaped around some setuptools logic in pyproject
Since we define `package-data` and `packages` there should be no need for:
```
[tool.setuptools.packages.find]
where = ["archinstall", "archinstall.*"]
```
* Removed pyproject collisions. Duplicate definitions.
* Made sure pyproject.toml includes languages
* Add example and update README
* Fix pyproject issues
* Generate locale
* Refactor imports
* Simplify imports
* Add profile description and package examples
* Align code
* Fix mypy
* Simplify imports
* Fix saving config
* Fix wrong luks merge
* Refactor installation
* Fix cdrom device loading
* Fix wrongly merged code
* Fix imports and greeter
* Don't terminate on partprobe error
* Use specific path on partprobe from luks
* Update archinstall/lib/disk/device_model.py
Co-authored-by: codefiles <11915375+codefiles@users.noreply.github.com>
* Update archinstall/lib/disk/device_model.py
Co-authored-by: codefiles <11915375+codefiles@users.noreply.github.com>
* Update github workflow to test archinstall installation
* Update sway merge
* Generate locales
* Update workflow
---------
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Co-authored-by: Anton Hvornum <anton@hvornum.se>
Co-authored-by: Anton Hvornum <anton.feeds+github@gmail.com>
Co-authored-by: codefiles <11915375+codefiles@users.noreply.github.com>
2023-04-19 12:55:42 +02:00
Anton Hvornum
dc5291f781
Removing legacy build files setup.py and setup.cfg ( #1711 )
...
* Removing legacy build and dist files
* Bumped requirement for setuptools to deal with dynamic license inclusion
* Added dynamic versioning and licensing to pyproject.toml
* Clarified the license according to the LICENSE file, GPL-3.0-only
2023-03-31 18:14:34 +02:00
Anton Hvornum
9f102a66a4
Add some tweaks to make PKGBUILD more manageable ( #1695 )
...
* Fixing some values that trigger issues in PKGBUILD
* license dynamic
2023-03-29 14:39:47 +02:00