Fix outstanding formatting and linting issues
Marco Ricci

Marco Ricci commited on 2024-09-27 22:18:46
Zeige 2 geänderte Dateien mit 4 Einfügungen und 6 Löschungen.

... ...
@@ -28,10 +28,10 @@ if TYPE_CHECKING:
28 28
 startup_ssh_auth_sock = os.environ.get('SSH_AUTH_SOCK', None)
29 29
 
30 30
 # https://hypothesis.readthedocs.io/en/latest/settings.html#settings-profiles
31
-hypothesis.settings.register_profile("ci", max_examples=1000)
32
-hypothesis.settings.register_profile("dev", max_examples=10)
31
+hypothesis.settings.register_profile('ci', max_examples=1000)
32
+hypothesis.settings.register_profile('dev', max_examples=10)
33 33
 hypothesis.settings.register_profile(
34
-    "debug", max_examples=10, verbosity=hypothesis.Verbosity.verbose
34
+    'debug', max_examples=10, verbosity=hypothesis.Verbosity.verbose
35 35
 )
36 36
 
37 37
 
... ...
@@ -371,7 +371,7 @@ def _spawn_data_sink(  # pragma: no cover
371 371
 
372 372
 
373 373
 @pytest.fixture(params=_spawn_handlers, ids=operator.itemgetter(0))
374
-def spawn_ssh_agent(
374
+def spawn_ssh_agent(  # noqa: C901
375 375
     request: pytest.FixtureRequest,
376 376
 ) -> Iterator[tests.SpawnedSSHAgentInfo]:
377 377
     """Spawn an isolated SSH agent, if possible, as a pytest fixture.
... ...
@@ -8,7 +8,6 @@ from __future__ import annotations
8 8
 
9 9
 import base64
10 10
 import io
11
-import os
12 11
 import socket
13 12
 from typing import TYPE_CHECKING
14 13
 
... ...
@@ -22,7 +21,6 @@ from derivepassphrase import _types, cli, ssh_agent, vault
22 21
 
23 22
 if TYPE_CHECKING:
24 23
     from collections.abc import Iterable, Iterator
25
-    from typing import Literal
26 24
 
27 25
 
28 26
 class TestStaticFunctionality:
29 27