Mic92
8134ffd787
Merge pull request 'ruff-4-perf-fixes' ( #4935 ) from ruff-4-perf-fixes into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4935
2025-08-25 13:12:14 +00:00
Jörg Thalheim
7f1590c729
PERF403: fix
2025-08-25 15:06:32 +02:00
Jörg Thalheim
c65bb0b1ce
PERF401: fix
2025-08-25 15:06:32 +02:00
Jörg Thalheim
917407c475
D210: fix
2025-08-25 14:56:48 +02:00
Jörg Thalheim
d9e6e0c540
D417: fix
2025-08-25 14:56:48 +02:00
Jörg Thalheim
ef5ab0c2f4
D404: fix
2025-08-25 14:56:48 +02:00
Mic92
05665b1c7e
Merge pull request 'ruff-3-arg-fixes' ( #4934 ) from ruff-3-arg-fixes into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4934
2025-08-25 12:54:04 +00:00
Jörg Thalheim
04457b1272
ARG001: fix
2025-08-25 14:46:12 +02:00
Jörg Thalheim
4986fe30c3
ARG002/ARG005: fix
2025-08-25 14:36:36 +02:00
Jörg Thalheim
f4feac0d6b
logmanager: fix exceptions in python docs
2025-08-25 14:11:25 +02:00
Jörg Thalheim
03a4ac5bde
sudo_askpass_proxy: check for stdin before print
2025-08-25 14:11:25 +02:00
Jörg Thalheim
ab50b433ee
type_to_jsonschema: throw correct Error
2025-08-25 14:11:25 +02:00
Jörg Thalheim
123e8398d8
S310: fix
2025-08-25 14:11:25 +02:00
Jörg Thalheim
6a2dfb8176
S101: fix
2025-08-25 14:11:25 +02:00
Jörg Thalheim
332d10e306
s110: address
2025-08-25 14:07:59 +02:00
Jörg Thalheim
954301465f
s608: ignore
2025-08-25 14:07:59 +02:00
Jörg Thalheim
2199f4efd5
S324: ignore
2025-08-25 14:07:59 +02:00
Jörg Thalheim
e208c02be7
S311: fix random usage
2025-08-25 14:07:59 +02:00
Jörg Thalheim
7747e3cc0d
S604: ignore
2025-08-25 14:07:59 +02:00
Jörg Thalheim
1c24b4c6cb
S604: fix
2025-08-25 14:07:59 +02:00
Jörg Thalheim
0a70ed6268
S108: ignore our uses
2025-08-25 13:43:33 +02:00
Jörg Thalheim
b3cafa4a8c
log_manager: drop example usage
...
don't need this.
2025-08-25 13:06:04 +02:00
Jörg Thalheim
d1cf87d2ce
BLE001: don't catch blind errors
2025-08-25 13:06:04 +02:00
Jörg Thalheim
dc5485d9f1
ruff: replace asserts outside of tests with Exceptions
2025-08-25 13:06:04 +02:00
hsjobeki
5be9b8383b
Merge pull request 'clan/inventory: allow list usage of roles via polymorphism' ( #4918 ) from cleanup-again into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4918
2025-08-25 10:41:49 +00:00
DavHau
c308fd63a7
vars: delete old var when changing share
...
When changing a password from non-shared to shared, we want to remove the old one
2025-08-25 10:37:46 +00:00
Mic92
0803d9c864
Merge pull request 'Apply automatic ruff lints' ( #4919 ) from ruff-1 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4919
2025-08-25 09:53:41 +00:00
Jörg Thalheim
0ec2c32ff8
ruff: apply automatic unsafe fixes
2025-08-25 11:34:41 +02:00
Jörg Thalheim
ea2d6aab65
ruff: apply automatic fixes
2025-08-25 11:34:41 +02:00
Johannes Kirschbauer
4414403dec
clan/inventory: allow list usage of roles via polymorphism
2025-08-25 11:27:38 +02:00
Johannes Kirschbauer
2d78730037
clan/schema: rename json schemas consistent {clanSchemaNix, clanSchemaJson}
2025-08-25 11:27:03 +02:00
Johannes Kirschbauer
00bd003be4
tests/dirs: unify test files
2025-08-25 10:14:02 +02:00
lassulus
4dc90b3d39
clan_lib flake: fix handling of maybes and empty sets
2025-08-22 23:44:14 +02:00
Qubasa
84bf9f3bc5
clan_lib: Fix run_machine_install incorrect pesist_state path
2025-08-22 11:21:44 +02:00
Luis Hebendanz
9aa9ba500e
Merge pull request 'clan-lib: Make Flake throw more concrete errors if the flake path is invalid or non existend' ( #4870 ) from Qubasa/clan-core:fix_ui_stuff2 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4870
2025-08-21 22:08:28 +00:00
Qubasa
2934269279
clan-lib: Make Flake throw more concrete errors if the flake path is invalid or non existend
...
treefmt
2025-08-21 23:53:26 +02:00
hsjobeki
9a0ad4182f
Merge pull request 'api/modules: unify frontmatter with module manifest' ( #4847 ) from api-modules-unify into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4847
Reviewed-by: lassulus <clanlol@lassul.us >
2025-08-21 12:56:19 +00:00
Johannes Kirschbauer
1f2f71ab03
lib/modules: make categories class method
2025-08-21 14:41:03 +02:00
Luis Hebendanz
aa840d9758
Merge pull request 'working check_machine_up_to_date' ( #4754 ) from Qubasa/clan-core:build_is_installed_api into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4754
2025-08-20 19:12:53 +00:00
hsjobeki
d1e6da0779
Merge pull request 'api/install: set install date after install' ( #4838 ) from install-done into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4838
Reviewed-by: brianmcgee <brian@bmcgee.ie >
2025-08-20 19:02:13 +00:00
Johannes Kirschbauer
e6981ddd72
cli/install: add --no-persist-state
...
Skip persisting the current date after successful install
This is a workaround due to incomplete test setup - installing a clan machine without having a clan
2025-08-20 20:46:44 +02:00
Qubasa
101c52f7c2
clan_lib: Add 'address' field to LocalHost
2025-08-20 20:28:21 +02:00
Qubasa
ea1e470502
clan_lib: add 'get_metrics' API endpoint
2025-08-20 20:17:14 +02:00
Johannes Kirschbauer
f4d6edc501
api/modules: unify frontmatter with module manifest
2025-08-20 20:15:41 +02:00
Johannes Kirschbauer
cbbc235570
api/modules: rename Frontmatter -> ModulesFrontmatter to make room for other disk templates metadata
2025-08-20 19:46:28 +02:00
Mic92
5a5ec468c7
Merge pull request 'clan-cli: use automatic networking for vars upload and machines update' ( #4792 ) from networking_4 into main
...
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4792
2025-08-20 12:42:56 +00:00
lassulus
e2eb26345f
networking: add documentation, unhide from CLI
2025-08-20 14:22:58 +02:00
Johannes Kirschbauer
05951ffdb9
api/install: set install date after install
2025-08-20 13:39:32 +02:00
DavHau
527b4b2e40
vars: ensure shared generators don't depend on machine specific generators
...
A dependency relation like this would not make sense as it would not be clear which machines generator the shared generator would depend on
2025-08-20 15:39:17 +07:00
DavHau
de0b1b2d70
vars: fix regenerating a specific generator
...
This was broken after re-designing the API -> added a test
2025-08-20 14:49:27 +07:00