Skip to content

chore(ci): lint scripts/ + ignore S603/S607 in scripts/**#48

Merged
officialCodeWork merged 1 commit into
mainfrom
chore/lint-ignore-subprocess-in-scripts
May 24, 2026
Merged

chore(ci): lint scripts/ + ignore S603/S607 in scripts/**#48
officialCodeWork merged 1 commit into
mainfrom
chore/lint-ignore-subprocess-in-scripts

Conversation

@officialCodeWork

Copy link
Copy Markdown
Owner

Summary

Two related fixes that surfaced when the rebased Step 1.1c PR (#46) ran CI for the first time after #47 merged:

  1. Ruff S603/S607 in scripts/check_schema_drift.py (added by chore(schemas): track generated JSON Schemas + add drift CI gate #47) — bandit subprocess rules. Dev tooling under scripts/ invokes known executables (git, uv) with fixed argument lists, mirroring the existing T201 carve-out for stdout/stderr. Extend the per-file ignore so this class of script doesn't need scattered # noqa comments.

  2. scripts/** was missing from the python paths-filter in .github/workflows/ci.yml. That's why chore(schemas): track generated JSON Schemas + add drift CI gate #47's CI passed without exercising ruff on the new script — the Lint & Test matrix was skipped entirely. Add scripts/** so future script changes are linted at PR time.

Why now

#46 (1.1c) is currently red because of (1). Landing this fix unblocks the rebase. (2) is the root cause that lets this whole class of bug recur — fixing it here avoids the same surprise on the next script-only PR.

Test plan

🤖 Generated with Claude Code

Two related fixes that surfaced when the rebased Step 1.1c PR (#46) ran
CI for the first time after #47 merged:

1. `scripts/check_schema_drift.py` (added in #47) tripped ruff S603 +
   S607 — bandit subprocess rules. Dev tooling under scripts/ invokes
   known executables (git, uv) with fixed argument lists, mirroring the
   existing T201 carve-out for stdout/stderr. Extend the per-file ignore
   so this class of script doesn't need scattered `# noqa` comments.

2. The `python` paths-filter that gates `Lint & Test` did not include
   `scripts/**`. That's why #47's CI passed without exercising ruff on
   the new script — the lint job was skipped entirely. Add `scripts/**`
   so future changes under scripts/ are linted at PR time.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@officialCodeWork
officialCodeWork merged commit 186d68d into main May 24, 2026
11 checks passed
officialCodeWork added a commit that referenced this pull request May 24, 2026
chore(tracker): sync PR links for steps 1.1a/1.1c + log #46#48
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