Skip to content

test: verify llms drift fails the build - #447

Closed
loonghao wants to merge 2 commits into
mainfrom
test/drift2
Closed

loonghao wants to merge 2 commits into
mainfrom
test/drift2

Conversation

@loonghao

Copy link
Copy Markdown
Owner

Scratch PR: llms.txt is deliberately drifted to confirm the new --check step turns the build red. Not for merge.

…der CI lint

The docstring baseline comments claimed two things that are not true, both
corrected against measured behaviour:

- per-file-ignores is a union of every matching pattern, not a most-specific
  match. A rule listed for a file is ignored for that file, so new violations
  of an already-baselined rule are also ignored. Removing a rule from a narrow
  tier is a no-op while a wider tier still lists it, which made the ratchet
  inoperative for four of the eight tiers.
- The baseline count is 665 findings under the committed google convention
  (507 inside the CI lint scope), not 864; 864 is the default pep257 count.
  The google convention is also what suppresses the D203/D211 and D212/D213
  warnings, so the config emits none.

Extend the lint scope from `photoshop` to `photoshop test scripts`. The
baseline declares tiers for test/ that no CI job could reach, so they were
dead configuration; scripts/ was outside every gate. Reformat the six test
files that ruff format reports, which is what the repo's own pre-commit hook
already applies. All six are AST-identical before and after.

Wire `generate_llms.py --check` into the same job so drifted llms.txt files
fail the build instead of only producing a bot pull request.

Also correct the generator docstring, which pointed at a workflow file that
does not exist, and the version comment: the stamped version is the last
released one, because the job runs before release-please creates the tag.
@loonghao loonghao closed this Oct 13, 2026
@loonghao
loonghao deleted the test/drift2 branch October 13, 2026 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant