เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Enforce Formatting on Every File Edit

Your team requires all Python files to be formatted with Black before they're shared. You added a note in CLAUDE.md asking Claude to run Black after edits — but it occasionally skips it. That's expected: CLAUDE.md instructions are best-effort suggestions, not guarantees. A post-tool-use hook is different. It fires automatically after every file edit, every single time, with no exceptions.

The team's project is already in your working directory at /home/repl/climate-analysis/..

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Claude Code 101

ดูคอร์ส

คำแนะนำการฝึกหัด

  • Start Claude Code with claude.
  • Ask Claude to add a post-tool-use hook to settings.json that runs black on any Python file after it is edited.
  • When done, type /exit to exit Claude Code.

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำจริง

เปลี่ยนทฤษฎีให้เป็นการลงมือทำด้วยแบบฝึกหัดเชิงโต้ตอบหนึ่งในของเรา

เริ่มแบบฝึกหัด