Reformat everything with ruff
Marco Ricci

Marco Ricci commited on 2026-07-05 21:47:45
Zeige 3 geänderte Dateien mit 7 Einfügungen und 5 Löschungen.


Linting and type checking passes, so nothing to do there.
... ...
@@ -161,9 +161,7 @@ class Vault:
161 161
         self._allowed = bytearray(self.CHARSETS["all"])
162 162
         self._required: list[bytes] = []
163 163
 
164
-        def subtract_or_require(
165
-            count: int | None, characters: bytes
166
-        ) -> None:
164
+        def subtract_or_require(count: int | None, characters: bytes) -> None:
167 165
             if not isinstance(count, int):
168 166
                 return
169 167
             if count <= 0:
... ...
@@ -475,7 +475,9 @@ class ConfigManagementStateMachine(stateful.RuleBasedStateMachine):
475 475
         config_service = config["services"].get(service, {})
476 476
         maybe_unset = set(maybe_unset) - setting.keys()
477 477
         if overwrite:
478
-            config["services"][service] = config_service = cast("_types.VaultConfigServicesSettings", {})
478
+            config["services"][service] = config_service = cast(
479
+                "_types.VaultConfigServicesSettings", {}
480
+            )
479 481
         elif maybe_unset:
480 482
             for key in maybe_unset:
481 483
                 config_service.pop(key, None)  # type: ignore[misc]
... ...
@@ -377,7 +377,8 @@ class Parametrize(pytest_machinery.Parametrize):
377 377
             ),
378 378
         ],
379 379
     )
380
-    QUERY_EXTENSIONS_MALFORMED_RESPONSES = hypothesis_machinery.explicit_examples(
380
+    QUERY_EXTENSIONS_MALFORMED_RESPONSES = (
381
+        hypothesis_machinery.explicit_examples(
381 382
             "response_data",
382 383
             [
383 384
                 pytest.param(b"\xde\xad\xbe\xef", id="truncated"),
... ...
@@ -393,6 +394,7 @@ class Parametrize(pytest_machinery.Parametrize):
393 394
                 ),
394 395
             ],
395 396
         )
397
+    )
396 398
     ALL_SSH_TEST_KEYS = pytest.mark.parametrize(
397 399
         ["ssh_test_key_type", "ssh_test_key"],
398 400
         list(data.ALL_KEYS.items()),
399 401