From 72b5d9496446d28790275e7200c84c2a42f1bdb2 Mon Sep 17 00:00:00 2001 From: "Aaron K. Clark (CryptoJones)" Date: Mon, 6 Jul 2026 22:55:28 -0500 Subject: [PATCH] style(guard): wrap GIT_FRESHNESS_MESSAGE lines under 100 chars (fix ruff E501) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 3.8.6 message (#153) exceeded the 100-col limit on 5 string lines, reddening ci (ruff check .). Rewrapped the literals — identical runtime text, each source line <=100. ruff clean, 134 guard tests pass. This is the 'run everything CI runs (ruff + pytest), not just tests' rule I skipped before #153. Co-Authored-By: Claude Opus 4.8 --- src/omind/guard.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/omind/guard.py b/src/omind/guard.py index 777e61c..f3facc6 100644 --- a/src/omind/guard.py +++ b/src/omind/guard.py @@ -63,13 +63,16 @@ "this turn; a generic project-memory consult is not enough." ) GIT_FRESHNESS_MESSAGE = ( - "repo work requires a same-turn freshness check before review/edit/test/commit/push. " - "Put a LITERAL-path fetch in the SAME command as the write, chained with && — e.g.:\n" - ' git -C "/abs/path/to/repo" fetch --all --prune && git -C "/abs/path/to/repo" commit -am "..."\n' - "(same shape for push / a git write; for `gh pr create`, prefix it with the literal-path fetch too). " - "Gotchas that make it silently fail: (1) the path must be a LITERAL absolute path — a $VAR is not " - "resolved by the static parser; (2) no pipe/redirect in the fetch part; (3) the fetch must succeed " - "(exit 0) — if `--all` hits an unreachable mirror (e.g. a Codeberg remote with no key loaded), use " + "repo work requires a same-turn freshness check before " + "review/edit/test/commit/push. Put a LITERAL-path fetch in the SAME command as " + "the write, chained with && — e.g.:\n" + ' git -C "/abs/path/to/repo" fetch --all --prune ' + '&& git -C "/abs/path/to/repo" commit -am "..."\n' + "(same shape for push / a git write; for `gh pr create`, prefix it with the " + "literal-path fetch too). Gotchas that make it silently fail: (1) the path must " + "be a LITERAL absolute path — a $VAR is not resolved by the static parser; (2) no " + "pipe/redirect in the fetch part; (3) the fetch must succeed (exit 0) — if `--all` " + "hits an unreachable mirror (e.g. a Codeberg remote with no key loaded), use " "`fetch origin --prune` so it doesn't error out and fail to register." ) GLOBAL_MUTATION_MESSAGE = (