python-developer v1.3.0
A Claude plugin that enforces Python code quality by running
blackandpylintautomatically after every Python file modification.
Prerequisites
- Python — must be installed and available on the system
PATH.
Verify with:python --version # or on some systems python3 --version
blackandpylintdo not need to be installed manually — the hook installs them automatically when needed.
Installation
Install via the VS Code Chat Plugin Marketplace using the dimpletz/prompts-collection marketplace source and enable the python-developer plugin.
How It Works
PostToolUse hook
The plugin registers a PostToolUse hook (com.github.copilot/hooks/hooks.json) that runs scripts/python-quality.py after every agent tool call.
When a Python file is created or modified the script:
- Installs
blackandpylintautomatically if they are not already present. - Runs
blackto auto-format the modified file(s). - Runs
pylinton non-test Python file(s) and surfaces findings as additional context so the agent can iterate and fix issues.
Components
graph TD
A[Agent tool call] --> B{PostToolUse hook}
B --> C[python-quality.py]
C --> D{Python file modified?}
D -- No --> E[Exit silently]
D -- Yes --> F[Ensure black and pylint are available]
F --> G[Run black]
G --> H[Run pylint]
H --> I[Return findings to agent]