Skip to content

Commit 463f99b

Browse files
nhortonclaude
andcommitted
chore: ruff format
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5b54046 commit 463f99b

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/deepwork/review/config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,7 @@ def _parse_rule(
166166
)
167167

168168

169-
def _parse_reference_files(
170-
entries: list[dict[str, Any]], source_dir: Path
171-
) -> list[ReferenceFile]:
169+
def _parse_reference_files(entries: list[dict[str, Any]], source_dir: Path) -> list[ReferenceFile]:
172170
"""Parse optional `reference_files` entries from a .deepreview rule.
173171
174172
Paths are resolved relative to ``source_dir``. Existence is not checked

tests/unit/deepschema/test_review_bridge.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,7 @@ def _write_schema_yaml(self, schema_dir: Path, body: str) -> Path:
216216
# THIS TEST VALIDATES A HARD REQUIREMENT (DW-REQ-011.11.1, DW-REQ-011.11.2,
217217
# DW-REQ-011.11.3, DW-REQ-011.11.4).
218218
# YOU MUST NOT MODIFY THIS TEST UNLESS THE REQUIREMENT CHANGES
219-
def test_references_and_json_schema_populate_refs_examples_listed(
220-
self, tmp_path: Path
221-
) -> None:
219+
def test_references_and_json_schema_populate_refs_examples_listed(self, tmp_path: Path) -> None:
222220
schema_dir = tmp_path / ".deepwork" / "schemas" / "thing"
223221
self._write_schema_yaml(
224222
schema_dir,
@@ -247,9 +245,7 @@ def test_references_and_json_schema_populate_refs_examples_listed(
247245
assert labels == {"../guide.md", "thing.schema.json"}
248246
by_label = {r.relative_label: r for r in rule.reference_files}
249247
assert by_label["../guide.md"].path == (schema_dir.parent / "guide.md").resolve()
250-
assert by_label["thing.schema.json"].path == (
251-
schema_dir / "thing.schema.json"
252-
).resolve()
248+
assert by_label["thing.schema.json"].path == (schema_dir / "thing.schema.json").resolve()
253249
# Examples listed in the rule's instructions text.
254250
assert "Example files available for reference" in rule.instructions
255251
assert "`example.yml`" in rule.instructions

0 commit comments

Comments
 (0)