Commit Graph

26 Commits

Author SHA1 Message Date
correctmost f94e8b8984
Fix Pyright warnings with importlib.util (#3214) 2025-03-02 10:40:53 +11:00
correctmost 25172bd0f8
Start replacing Optional with union syntax in lib/ (#2837) 2024-11-17 09:03:01 +11:00
correctmost ecad6762e5
Fix some mypy warnings in the lib/ directory (#2822) 2024-11-16 18:27:26 +11:00
correctmost dff101e279
Remove most deprecated typing.List usage (#2810) 2024-11-16 10:13:51 +11: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
Anton Hvornum 1086fd686d
Cleaned up argument loading slighly. (#1419)
* Cleaned up argument loading slighly. Also flipped some --silent logic to avoid double negatives. --plugin and --conf {'plugin': ...} should now both work.

* Tweaked xorg profile to use list instead of strings. Because strings causes some issues through add_additional_packages() as it ends up as [(xorg, xorg-xinit), nano] instead of a flat list of packages or string.

* Tweaked xorg profile to use list instead of strings. Because strings causes some issues through add_additional_packages() as it ends up as [(xorg, xorg-xinit), nano] instead of a flat list of packages or string.
2022-08-11 18:06:02 +02:00
Werner Llácer 3da03a192e
Solves issue 1343. Could not locate partition after creation (#1355)
* Solves issue 1343. Could not locate partition after creation

* Added some flake fixes.

Co-authored-by: Anton Hvornum <anton@hvornum.se>
2022-08-01 10:26:51 +02:00
Anton Hvornum 48b1001734 Hotfix for plugins, forgot group= 2022-05-01 17:08:05 +02:00
Anton Hvornum c40d27b074
The dict object is deprectrecated, instead .select() is suggested. (#1107)
* The dict object is deprectrecated, instead .select() is suggested.

* removed copy paste issue

* Removed tests, they'll be added in a separate PR
2022-05-01 17:06:23 +02:00
Anton Hvornum 93f9d159bd
Fixed import error ModuleType (#848)
Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
2022-01-07 10:54:29 +00:00
Anton Hvornum e32cf71ae7
Added type annotations to all functions (#845)
* Added type annotations for 1/5 of the files.

There's bound to be some issues with type miss-match, will sort that out later.

* Added type hints for 4/5 of the code

* Added type hints for 4.7/5 of the code

* Added type hints for 5/5 of the code base

* Split the linters into individual files

This should help with more clearly show which runner is breaking since they don't share a single common name any longer. Also moved mypy settings into pyproject.toml

* Fixed some of the last flake8 issues

* Missing parameter

* Fixed invalid lookahead types

* __future__ had to be at the top

* Fixed last flake8 issues
2022-01-06 22:01:15 +01:00
Anton Hvornum b573421df2 Fixed flake8 issues in networking, plugins and profiles. 2021-11-01 12:03:40 +00:00
SecondThundeR ffe38c879a general: remove all found white-spaces
Also this change adds new line at the end for some scripts
2021-09-19 15:49:44 +03:00
Anton Hvornum 7b1bb4af97 Fixed a plugin issue where there are no plugins found. 2021-05-31 12:17:18 +02:00
Anton Hvornum 0d0dfc8ebe Added/moved comments. 2021-05-24 14:40:21 +02:00
Anton Hvornum e604f2c676 Added optional version handling. And improved error handling a bit. 2021-05-24 14:36:24 +02:00
Anton Hvornum 2b5ad7e52e Added a comment 2021-05-24 14:13:45 +02:00
Anton Hvornum 250eb93f10 Added better error handling. 2021-05-24 14:12:23 +02:00
Anton Hvornum c7426067dd Implemented load_plugin() which handles local or remote paths. Also added some error handling surrounding the loading of plugins. 2021-05-24 13:56:57 +02:00
Anton Hvornum 1fff9b44d1 Spelling error 2021-05-24 13:42:28 +02:00
Anton Hvornum 14577415f3 Spelling error 2021-05-24 13:42:09 +02:00
Anton Hvornum 2ee88e0e3a Switched plugin strategty. Now uses built-in entrypoints to source and load the plugins. This is the default method provided by Python, and is the cleanest so far I think. 2021-05-24 13:34:56 +02:00
Anton Hvornum 404197dc93 Enabling --plugins filtering 2021-04-30 16:45:42 +02:00
Anton Hvornum 25b699b44e Automatic loading of plugins 2021-04-30 15:33:26 +02:00
Anton Hvornum b59a406069 Adding on_pacstrap hook for installation. As well as a plugins listing that plugins can hook in to in order to be called during specific on_<event> calls. 2021-04-29 14:22:38 +02:00