Commit Graph

112 Commits

Author SHA1 Message Date
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