Skip to content

docs(openspec): plan #2166 Remove dead imports and add F401 ratchet - #2981

Merged
dan-petty merged 1 commit into
mainfrom
refactor/2166-the-unused-run-subprocess-re-import
Nov 1, 2026
Merged

dan-petty merged 1 commit into
mainfrom
refactor/2166-the-unused-run-subprocess-re-import

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

Plans #2166

Remove the unused run_subprocess re-import in security/ruff.py and the private _prepare_cmd alias in core/process.py. Update the test fake and tests to use the public name prepare_tool_cmd. Add a devops ci row that runs ruff check --select F401 --ignore-noqa over src/ and fails when the finding count exceeds 14, the ceiling of sites owned by #1332. This adds the check kind that #1309 left out for noqa F401 re-imports.

Change: openspec/changes/2166-the-unused-run-subprocess-re-import/

@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 10:18
@dan-petty
dan-petty self-requested a review as a code owner November 1, 2026 10:18
@dan-petty
dan-petty merged commit 739854e into main Nov 1, 2026
18 checks passed
@dan-petty
dan-petty deleted the refactor/2166-the-unused-run-subprocess-re-import branch November 1, 2026 10:19
dan-petty added a commit that referenced this pull request Nov 1, 2026
This pull request corrects the OpenSpec plan for #2166.

The Service staged the plan in PR #2981. An evaluation found two false
claims. The re-imports in src are already gone, so the planned ruff.py
task removed nothing. The check kind the plan wanted already exists as a
ratchet.

The corrected plan has two groups. Group 1 removes the _prepare_cmd
alias. Group 2 sets the src noqa: F401 ratchet ceiling to 0. The plan
changes no code and no test.

Plans #2166
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