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 cheolwanparkv2.0.0MITIn 1 marketplace
Automatically lint, format, and type-check Python files with ruff and pyright
You run one by typing its /name in Claude Code.
2 cautions to review before installing
A hook runs when Claude writes or edits files
A command runs shell commands (! syntax) when you invoke it
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
python, linting, formatting, type-checking, ruff, pyright, static-analysis, code-quality
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Automatically lint, format, and type-check Python files with ruff and pyright whenever Claude edits or writes them.
You must have the following tools installed on your system:
ruff (Python linter and formatter):
# Install with pip
pip install ruff
# Or with uv
uv add --dev ruff
# Or with Homebrew (macOS)
brew install ruff
# Or with pipx
pipx install ruff
pyright (Python static type checker):
# Install with Homebrew (recommended on macOS)
brew install pyright
# Or with npm
npm install -g pyright
# Or with pip (Python wrapper)
pip install pyright
jq (JSON processor for parsing tool outputs):
# Install with Homebrew (macOS)
brew install jq
# Or with apt (Linux)
sudo apt-get install jq
# Or with yum (Linux)
sudo yum install jq
realpath (path resolution utility, part of coreutils):
# Usually pre-installed on Linux
# On macOS, install coreutils:
brew install coreutils
# Verify:
which realpath
ruff --version
pyright --version
jq --version
realpath --version
This plugin is available through the useful-claude-plugins marketplace.
The plugin uses a PostToolUse hook that triggers after Claude uses the Edit or Write tools:
.py extensionruff check --fix to automatically fix linting issuesruff format to apply consistent formattingruff check --output-format=json to capture unfixable issuespyright on the file to check for type errorsExample:
import os; x=1+2 → Hook transforms to x = 1 + 2 (unused import removed, spacing fixed)def foo(x: int) -> str: return x → Hook reports type error: "Expression of type 'int' cannot be assigned to return type 'str'"In addition to automatic per-file linting, you can scan your entire project using the /lint-project slash command.
/lint-project # Scan current directory
/lint-project src/ # Scan specific directory
.venv or venvPer-file auto-linting (automatic on Edit/Write):
Project-wide linting (/lint-project):
Auto-fixed (silently corrected):
x=1 → x = 1)def f(x,y) → def f(x, y))ruff format)Reported (requires manual intervention):
F821)F841)# Python Lint Report
**Project:** `/Users/you/project`
**Scanned:** `src/`
## Summary
- **Linting issues:** 5
- **Type errors:** 12
- **Type warnings:** 3
- **Files with issues:** 8
## Errors
### Linting Issues (5)
- `src/main.py:10:5` **F821** - Undefined name `foo`
...
### Type Errors (12)
- `src/utils.py:15:10` - Cannot assign "int" to "str"
...
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub cheolwanpark/claude-plugins --plugin python-lintPlugins from other owners that cover similar ground