style: apply make autoformat

Two leftovers of my own. The sweep that removed the reverse client entries
appended a newline where it cut a block, which at end of file leaves a blank
line after the last key in four services.yml. And the two cache-read nocheck
comments in the bond editor were written past the line limit, so the
formatter breaks their read_text calls across three lines and carries the
comment to the closing paren.

The wrap does not cost the suppression: test_no_uncached_file_reads matches
the statement, not the line the directive sits on, and passes on this form.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5 committed 2026-09-02 01:24:47 +02:00
1 parent 92f97a53ad
commit 0b13fb73d0
6 files changed
+6 -6

No files matched your search

+3 -1
View File
@@ -70,7 +70,9 @@ def set_bond(roles_dir: Path, role: str, service_key: str, bond: float | None) -
if not path.is_file():
raise EditError(f"no such file: {path}")
raw = path.read_text(encoding="utf-8") # nocheck: cache-read — a cached read would serve the text from before the previous edit and silently revert it
raw = path.read_text(
encoding="utf-8"
) # nocheck: cache-read — a cached read would serve the text from before the previous edit and silently revert it
lines = raw.splitlines(keepends=True)
start, end = _block(lines, service_key)
-1
View File
@@ -127,4 +127,3 @@ container_backup: # nocheck: bond-baseline backup host joins outside the variant
bond: 1
enabled: "{{ 'svc-bkp-volume-2-local' in group_names }}"
shared: true
-1
View File
@@ -95,4 +95,3 @@ container_backup: # nocheck: bond-baseline
bond: 1
enabled: "{{ 'svc-bkp-volume-2-local' in group_names }}"
shared: true
-1
View File
@@ -89,4 +89,3 @@ container_backup: # nocheck: bond-baseline
bond: 1
enabled: "{{ 'svc-bkp-volume-2-local' in group_names }}"
shared: true
@@ -108,4 +108,3 @@ container_backup: # nocheck: bond-baseline backup host joins outside the variant
bond: 1
enabled: "{{ 'svc-bkp-volume-2-local' in group_names }}"
shared: true
@@ -28,7 +28,9 @@ class TestSetBond(unittest.TestCase):
self.addCleanup(self._tmp.cleanup)
def read(self) -> str:
return self.path.read_text(encoding="utf-8") # nocheck: cache-read — re-reads the file set_bond just rewrote
return self.path.read_text(
encoding="utf-8"
) # nocheck: cache-read — re-reads the file set_bond just rewrote
def test_rewrites_the_value_in_place(self) -> None:
self.assertEqual(set_bond(self.roles, "web-app-demo", "litellm", 0.25), "0.25")