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