Hook
format-python-files
Automatically format Python files after any Edit operation using black formatter. This hook runs 'black' on any .py file that Claude modifies, ensuring consistent…
format-python-files is a Claude Code hook you can drop into a project. It plugs into the Claude Code workflow directly, so it is useful when a task keeps recurring and you want it handled the same way each time.
Everything on this page — the summary, the category and the how-to — is written by HowToPrompts; the link below goes to the original project.
| Type | Hook |
|---|
/hook add format-python-filesHow to use it
- Add the file to `.claude/agents/` (subagent) or `.claude/commands/` in your project.
- Restart Claude Code so it registers the new entry.
- Invoke it by name, or let the main session delegate to it.
Compiled and written by HowToPrompts from public sources.
← Back to Agents & Commands