Repository navigation
feat: 抽 run_per_language.py 共享 run_check/fix 的 per-language 编排 (v0.6.2) - #6
Merged
Merged
Conversation
- 新增 scripts/run_per_language.py:暴露 run_check / run_fix 两个纯函数, 封装 per-language 串行执行 + 退出码归一化(0/124/127)+ 结果聚合; - scripts/run_check.py 删本地 run/check_one/fix_one,仅保留 argparse + 报告; - scripts/fix.py 删内联 subprocess 循环,仅保留 argparse + 报告; - 行为不变:CLI 退出码、--fix 语义、--dry-run 输出格式、报告格式 100% 兼容; - 验证:unittest 14/14 + run_all 141/141/0 + openspec strict 5/5 + diff clean; - spec: idiomatic-runner (4 Requirements) 已合入
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Why
scripts/run_check.py 与 scripts/fix.py 共 ~198 行;编排代码占 ~80% 且重复。
任何 lint/format 调用约定演进(subprocess timeout、retry、probe、dry_run、节流)
都要双改;MCP 模式与 fix.py 互相不可见但语义重叠。
Verification
Spec
in CLI scripts, exit-code normalization (0/124/127), dry_run behavior