Fix python linter errors

This commit is contained in:
pinpox
2025-10-20 15:47:51 +02:00
parent 0ea561f998
commit ae5712229c
7 changed files with 27 additions and 15 deletions

View File

@@ -144,7 +144,7 @@ def test_machine_delete(
) -> None:
flake = flake_with_sops
admin_key, machine_key, machine2_key, *xs = sops_setup.keys
admin_key, machine_key, machine2_key, *_xs = sops_setup.keys
# create a couple machines with their keys
for name, key in (("my-machine", machine_key), ("my-machine2", machine2_key)):

View File

@@ -1418,7 +1418,7 @@ def test_shared_generator_conflicting_definition_raises_error(
# because they have conflicting definitions for the same shared generator
with pytest.raises(
ClanError,
match=".*differ.*",
match=r".*differ.*",
):
cli.run(["vars", "generate", "--flake", str(flake.path)])