0
Format python files
Siyah biçimlendiriciyi kullanarak herhangi bir Düzenleme işleminden sonra Python dosyalarını otomatik olarak biçimlendirin
yazan kuscubasiece·8 Eylül 2026
Kaynak: davepoon/claude-code-subagents-collection · MIT
Siyah biçimlendiriciyi kullanarak herhangi bir Düzenleme işleminden sonra Python dosyalarını otomatik olarak biçimlendirin
Kaynak: davepoon/claude-code-subagents-collection · MIT
curl -sL https://www.antrophiclove.com/api/kaynak/format-python-files/rawBu içerik mevcut dosyaya elle harmanlanmalı: .claude/settings.json
---
name: format-python-files
description: Automatically format Python files after any Edit operation using black formatter
category: formatting
event: PostToolUse
matcher: Edit
language: bash
version: 1.0.0
---
# format-python-files
Automatically format Python files after any Edit operation using black formatter
## Event Configuration
- **Event Type**: `PostToolUse`
- **Tool Matcher**: `Edit`
- **Category**: formatting
## Environment Variables
None required
## Requirements
- black (pip install black)
### Script
```bash
file_path=$(jq -r '.tool_input.file_path // empty')
if [[ "$file_path" =~ \.py$ ]]; then
python3 -m black "$file_path" 2>/dev/null || true
fi
```