Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By melodic-software Verified Orgv2.0.10MITIn 1 marketplace
Keeps Python files formatted and lint-fixed as Claude edits them and at git pre-commit, using your repo's own Ruff config. Runs silently after tool-call batches and only where a Ruff config governs the file; needs jq and Ruff installed.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
python-formatter, python-linter, pre-commit, git-hooks, code-formatting, lint-fixes, formatter, linter ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Rewrite Python after editspython_format_enabled
After each batch of tool calls, run Ruff check --fix and format over the Python files it wrote
booleandefault true
Check Python in uncommitted changes at turn endpython_format_end_of_turn
At the end of each turn, run the pre-commit Ruff check over the lines changed since the last commit and hand any findings back so they are fixed before the turn ends, at most once per turn. Nothing is rewritten. Off by default.
booleandefault false
Act on files git ignorespython_format_lint_gitignored
By default the hook leaves a file the repository gitignores alone: it is not rewritten or linted, since a rewrite of an ignored file has no git checkout to undo it. Set true to act on gitignored files too. A tracked file that matches an ignore pattern is always in scope.
booleandefault false
A Claude Code plugin that rewrites Python with Ruff in two places:
once per batch of tool calls in a Claude Code session, and again at git pre-commit for every
author. Both run ruff check --fix (safe fixes only) and ruff format. Findings that remain are
reported by the pre-commit entry, on the lines the commit adds; they no longer reach Claude on
each edit.
It uses your repository's own Ruff configuration. It ships no rules of its own and runs only when your repo has opted into Ruff.
PostToolBatch row runs after the tool calls of a turn
step resolve. It takes the .py and .pyi files that Write, Edit or MultiEdit calls in
the batch named, and runs Ruff once over all of them. It prints nothing and exits 0: no
finding and no notice goes to Claude or the user. A file that Read named is never rewritten.
if (neither applies to PostToolBatch). Its launcher skips the
script unless the payload mentions .py, so a batch without Python costs one node process.PostToolBatch row, fetch
hooks: PostToolBatch live..ruff.toml,
ruff.toml, or pyproject.toml with a [tool.ruff] section governs the
edited file, found by walking up from the file to the repository root. A
repo without a Ruff config is left untouched rather than rewritten to Ruff's
built-in defaults, so the plugin never imposes a style you did not choose.
Known limitation: a pyproject.toml that expresses this as a bare
[tool] header with an inline table ([tool] + ruff = { ... }) is not
recognized. Such a repo is treated as un-configured and the hook skips (fails
safe: a missed opt-in, never a wrong edit).
ruff check --fix never applies unsafe fixes, even when your config sets
unsafe-fixes = true.--unfixable F401,
because an import often lands one edit before the code that uses it. The pre-commit entry does
not pass it, so an unused import goes at commit.
unfixable list, fetch
settings: lint.unfixable live.--force-exclude, so a path your config excludes
(generated or vendored code) is left untouched even though it is passed explicitly. Files under
.githooks/ (installed copies) and gitignored files (unless python_format_lint_gitignored is
set) are skipped.--no-cache, so Ruff never writes a .ruff_cache
directory into your repo.The plugin ships one git-hook entry, ruff-check (git-hooks/entries.json), which rewrites. At
commit it refuses a partly staged Python file untouched, runs ruff check --fix and ruff format
over the staged .py and .pyi files, re-stages what changed, and blocks the commit only on a
finding Ruff still reports on a line the commit adds, printed as <path>:<line>: <message>. It
reaches every author, not only Claude, once
/python-format:setup apply install-git-hooks [scope=local|shared] registers it with the
repository's hook manager (lefthook, husky or plain git hooks). Local scope stays in this clone;
shared scope commits the copy under .githooks/python-format/. /python-format:setup check reports
drift, and the SessionStart probe prints one line when the entry is missing, stale or edited.
Ruff comes from the repo's .venv (.venv/bin/ruff, or .venv/Scripts/ruff.exe) or PATH. When
it is missing, an agent's commit fails with the install command; a person's commit gets a one-line
notice and goes through. git -c checks.skipmissing=ruff commit ... skips the check while ruff is
absent. The placement rules are the check-placement convention in the marketplace repository.
An opt-in Stop row (python_format_end_of_turn) runs the same check over the uncommitted changes
at the end of a turn, without rewriting, and hands findings back to Claude once per turn.
7-day copy clicks
npx claudepluginhub melodic-software/claude-code-plugins --plugin python-formatBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground