tenseleyflow/sway / 62d2602

Browse files

tests/pre_commit_hook: ruff format

Authored by espadonne
SHA
62d26025e5799f66257813ff99e3c2bdcdace7ad
Parents
1682d23
Tree
251614c

1 changed file

StatusFile+-
M tests/integration/test_pre_commit_hook.py 2 6
tests/integration/test_pre_commit_hook.pymodified
@@ -94,9 +94,7 @@ def _build_random_lora_adapter(base_dir: Path, out_dir: Path) -> None:
9494
 
9595
 
9696
 @pytest.fixture(scope="module")
97
-def hook_adapter(
98
-    tiny_model_dir: Path, tmp_path_factory: pytest.TempPathFactory
99
-) -> Path:
97
+def hook_adapter(tiny_model_dir: Path, tmp_path_factory: pytest.TempPathFactory) -> Path:
10098
     adapter_dir = tmp_path_factory.mktemp("precommit-hook-adapter")
10199
     _build_random_lora_adapter(tiny_model_dir, adapter_dir)
102100
     return adapter_dir
@@ -159,9 +157,7 @@ def _write_config(config_path: Path, spec_rel: str) -> None:
159157
 
160158
 
161159
 @pytest.fixture
162
-def precommit_repo(
163
-    tmp_path: Path, tiny_model_dir: Path, hook_adapter: Path
164
-) -> Iterator[Path]:
160
+def precommit_repo(tmp_path: Path, tiny_model_dir: Path, hook_adapter: Path) -> Iterator[Path]:
165161
     """Initialize a tmp git repo with a spec + pre-commit config.
166162
 
167163
     Yields the repo root. The spec file lives at