tests/pre_commit_hook: ruff format
- SHA
62d26025e5799f66257813ff99e3c2bdcdace7ad- Parents
-
1682d23 - Tree
251614c
62d2602
62d26025e5799f66257813ff99e3c2bdcdace7ad1682d23
251614c| Status | File | + | - |
|---|---|---|---|
| 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: | ||
| 94 | 94 | |
| 95 | 95 | |
| 96 | 96 | @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: | |
| 100 | 98 | adapter_dir = tmp_path_factory.mktemp("precommit-hook-adapter") |
| 101 | 99 | _build_random_lora_adapter(tiny_model_dir, adapter_dir) |
| 102 | 100 | return adapter_dir |
@@ -159,9 +157,7 @@ def _write_config(config_path: Path, spec_rel: str) -> None: | ||
| 159 | 157 | |
| 160 | 158 | |
| 161 | 159 | @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]: | |
| 165 | 161 | """Initialize a tmp git repo with a spec + pre-commit config. |
| 166 | 162 | |
| 167 | 163 | Yields the repo root. The spec file lives at |