Repository navigation
refactor(python-format)!: rename ruff-format plugin to python-format - #15783
Conversation
Rename the plugin directory, hook scripts, control-skill feature, option keys (python_format_enabled, python_format_lint_gitignored, python_format_end_of_turn) and their CLAUDE_PLUGIN_OPTION_PYTHON_FORMAT_* variables. Declare earlierNames ["ruff-format"] so the shared git-hook installer retires artifacts an earlier install left. Released changelog entries are corrected in place; sorted lists keep their order. BREAKING CHANGE: the install id is python-format@melodic-software and the setup skill is /python-format:setup. Refs: #15553 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VQb9Pz6CBRwjqpnFDbP9Rr
…format-to-python-format
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Full old-install run for the git-hook acceptance line of #15553, at f100024, in a scratch repository:
Not run: setting The earlier note in the PR body about a bare |
Lane-Activity: pr-refine/fix-docs
The fix-docs lane reworded two entries in docs/catalog.md, which is generated from the plugin manifests, so Check Catalog failed. This restores the generator's output. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01VQb9Pz6CBRwjqpnFDbP9Rr
|
claude-review reviewed Incremental review of What changed:
Prior advisory finding (the python-format feature README still listed Closing issue: the PR context names no closing issue, so there were no acceptance criteria to check in this increment. Spend: nothing in this increment spends credits or money. Verifier dropped 0 of 0 candidates. |
|
claude-security-review reviewed Security review (incremental, blocking only):
|
…ADME and name the opt-out The control skill's feature READMEs for python-format and spelling listed a check skill neither plugin ships. The major fragment now tells a machine outside the dotfiles rename map to repeat an opt-out under the new id. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01VQb9Pz6CBRwjqpnFDbP9Rr
Post-merge mutation testingKilled 2, survived 2, timeout 0, no coverage 0, invalid 0, not run 2.
Surviving mutants
The run's summary has the full report. |
Refs: #15553
session: AI Hero
Summary
Merges together with the dotfiles companion PR (branch
refactor/rename-ruff-format-to-python-formatin melodic-software/dotfiles), this PR first.The owner approved renaming the Python formatting plugin from
ruff-formattopython-format, migrated in full (owner decisions Q107 and Q133; owner, 2026-11-12: "nothing cosmetic, nothing left behind"). This PR delivers the in-repository rename and theearlierNamesdata the shared git-hook installer reads. Old installs leave through dotfilesuninstallPlugins(companion PR).Fix
git mvof the plugin directory toplugins/python-format, with the hook scripts renamed tohooks/python-format.sh,hooks/python-format.test.shandhooks/python-format-end-of-turn.test.sh, and the control-skill feature directory moved tofeatures/python-format. The pre-commit entry keeps its tool name,ruff-check.Old-to-new mapping:
ruff-format@melodic-softwarepython-format@melodic-software/ruff-format:setup/python-format:setupruff_format_enabledpython_format_enabledruff_format_lint_gitignoredpython_format_lint_gitignoredruff_format_end_of_turnpython_format_end_of_turnCLAUDE_PLUGIN_OPTION_RUFF_FORMAT_*CLAUDE_PLUGIN_OPTION_PYTHON_FORMAT_*.githooks/ruff-format/,checks.ruff-format.ruff-check.declined, findings prefixruff-format:.githooks/python-format/,checks.python-format.ruff-check.declined,python-format:These cover
plugin.jsonuserConfig,hooks.json(--run-if-unset-or-true PYTHON_FORMAT_ENABLED,--require-true PYTHON_FORMAT_END_OF_TURN),prerequisites.json(session_probe,hook:python-format.sh), the README, the setup skill, the tests, the evals (tags, commands, regex patterns including the escapedpython\-format) and.performance/ratchets.json./ruff-format:checkfrom the issue has no counterpart: that skill was removed before this rename.plugins/python-format/git-hooks/entries.jsondeclares"earlierNames": ["ruff-format"], which switches on the installer's leftover scan and decline carry-over (delivered by feat(git-hooks): migrate hook artifacts left under an earlier plugin name #15594 for the spelling rename) for this plugin.Every in-repository reference is renamed: the marketplace entry (keeps its position), the control skill row, ADR 0028,
docs/contracts/check-placement/README.mdandadopting-git-hooks.md,docs/contracts/hook-budget/README.md,docs/contracts/hook-precision/README.md(both places),docs/cursor-compatibility.md(both),docs/formatter-path-probes.md,plugins/go-format/README.md,plugins/toolchain/reference/ecosystems/python.yaml,plugins/toolchain/skills/check/context/python.md, andscripts/affected-tests-live.sh. Each doc list that names the formatters alphabetically still sorts with the new name in the old slot.Sorted lists: entries in
scripts/fragment-plugins.txt,scripts/em-dash-purged-paths.txtandscripts/suite-seconds.txtmoved to their sorted slots (afterprototype).scripts/shared-copies.txt: thelib/exec-bash.mjs,lib/prerequisites.*,lib/hook-utils.shandplugin-reconfigurationlines sat in order under the old name and moved to wherepython-formatsorts; the threelib/git-hooks/lines were not in order before and stay put (resort-shared-copies.py).Generated files: the token rename also rewrote the
docs/catalog.mdentry;node scripts/generate-catalog.mjsthen reported it in sync, so the file matches the generator's output.node scripts/generate-cheatsheet.mjsreports in sync;scripts/sync-shared-copies.sh --checkreports all 820 copies match.docs/architecture/landscape.jsonnames no path under the plugin:landscape-record.sh --drift-against docs/architecture/landscape.jsonreports "none that gates" (onlylast_touchedmoves), so it was not re-recorded.Changelog fragments:
majorfor python-format naming the new id, keys and git-hook remedy;patchfor go-format and toolchain prose;patchfor each plugin whose released entries were corrected in place (below). No fragment file name carries the old name.plugin.jsonversions are unchanged.Released entries in
plugins/python-format/CHANGELOG.mdthat would name something that never shipped under the current name describe it instead, with no heading changed and no earlier-name note: four mentions of the removedcheckskill (reword-removed-names.py), the removed per-hook telemetry schema path (two entries), thehook::emit_telemetryhook id, and the retiredHOOK_<PLUGIN>_ENABLEDvariable.Consumer migration. The plugin id changes to
python-format@melodic-software. The dotfiles PR renames theforce.enabledPluginskey and adds the old id toclaudeSettings.uninstallPlugins, so the nextfleet-convergeon each lane uninstalls the old copy and installspython-format. SavedpluginConfigsvalues for the old id move to the new id and keys through therenamedPluginsentry the dotfiles PR adds. On a machine not managed by those dotfiles:claude plugin uninstall ruff-format@<marketplace>,claude plugin install python-format@<marketplace>, then set any option again under its new key. In a repository with the pre-commit entry,/python-format:setup checkreports what the old install left assuperseded, and/python-format:setup apply install-git-hooksinstalls the new entry and retires those artifacts on the user's yes, keeping a recorded decline.Old name
Clean cutover.
git grep -n -i -e ruff-format -e ruff_format -e ruffformat -e 'ruff\-format'finds 277 hits atorigin/main541f8b005cand 10 at this head:plugins/python-format/git-hooks/entries.json:2"earlierNames": ["ruff-format"], the migration data the shared installer reads to find and retire what an install under the old name leftplugins/harness-config/evals/fixtures/quay-repo.sh:159- id: ruff-format(third-party)plugins/harness-config/evals/ag-formatter-already-enforced/prompt.md:2,samples/names-precommit.json:4,samples/posttooluse-not-a-gate.json:4,7,21samples/no-automation-write.json:38inag-formatter-already-enforced,ag-grep-count-ceilingandag-premature-db-mcp/ws/.claude/hooks/ruff-format.sh, a consumer's own hook (third-party)git ls-files | grep -i -e ruff-format -e ruff_formatprints nothing.git grep -n -i 'ruff format'hits only the tool's ownruff formatsubcommand, never the plugin's name written with a space. No.changes/ruff-format/directory exists after mergingorigin/mainat541f8b005c.Released entries corrected in place (#2388 rule). Only entry bodies changed; every
## [<v>]heading is kept. Each plugin's new patch fragment names the same versions:ADR 0028 (line 16) also names
python-formatnow.Verification
Run locally on this head (after merging
origin/main541f8b005c):bash plugins/python-format/hooks/python-format.test.sh: PASS=37 FAIL=1.bash plugins/python-format/hooks/python-format-end-of-turn.test.sh: 8 passed, 1 failed. The one failure in each is the spawn-budget census case:scripts/hook-census.shexits withmise ERROR node is not a valid shimon this host. The same census run against the old plugin on the main checkout fails the same way, so it is a host problem, not this change; CI decides those two cases.bash plugins/python-format/git-hooks/ruff-check.test.sh: 51 passed, 0 failed.scripts/check-changelog-fragments.sh --check: all 12 fragments valid.scripts/check-changelog-parity.sh --check-preserved origin/main: 8 changed changelogs keep every version heading (1,827 compared).scripts/check-killswitch-hoist.sh: 23 PreToolUse/PostToolUse scripts read their kill switch before any source.scripts/check-hook-userconfig-argv.sh: no bare${user_config.*}tokens.node scripts/generate-catalog.mjs --checkandnode scripts/generate-cheatsheet.mjs --check: in sync.scripts/sync-shared-copies.sh --check: all 820 copies match.node --test --test-concurrency=4 lib/git-hooks/install.test.mjs: 226 tests, 222 passed, 0 failed, 4 skipped.checks.ruff-format.ruff-check.declined trueset locally: the vendoredplugins/python-format/lib/git-hooks/install.mjs verifyreporteddeclined ruff-checkwith the fix "set checks.python-format.ruff-check.declined true ...; unset git config checks.ruff-format.ruff-check.declined (local)", andplan --scope localreturned asupersededdecision with"from": "ruff-format"and"carry": "decline". A bare.githooks/ruff-format/directory with no dispatcher was not listed in that decision'sdirs. The setup skill's retire-on-yes step was not run..githubsuite, the release dry run, and/docs-hygiene:rename-references(the hyphen, underscore, joined, spaced, upper-case and regex-escaped forms were swept withgit grepinstead).Remaining
Issue #15553 stays open after this PR. Its remaining done-when items live outside this repository:
enabledPluginskey,uninstallPlugins, therenamedPluginsentry, and the dotfiles manifest and render checks.fleet-convergeon a lane:claude plugin listshowspython-format@melodic-softwareand not the old id, and no saved setting is left under the old name.python-formatand writes nothing under the old name.setup checkreports it,apply install-git-hooksretires it and keeps a decline): only the decline detection above was run; a full old install retired through the setup skill was not.Follow-ups
checkskill that those plugins no longer ship (for examplefeatures/biome-format/README.md,features/go-format/README.md,features/markdown-format/README.md);/app-control:map refreshrewrites them. This PR removes the row forpython-formatandspellingonly.Review
docs/catalog.md; 6d67444 restores the generator's output and Check Catalog passes.checkrow infeatures/python-format/README.md: removed.Related
refactor/rename-ruff-format-to-python-format(must merge together).🤖 Generated with Claude Code
https://claude.ai/code/session_01VQb9Pz6CBRwjqpnFDbP9Rr