| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This folder contains code associated with the Real Python tutorial How to Automate Your Workflow With Claude Code Hooks.
This is a small uv-managed project with three Claude Code hooks wired up in .claude/:
Each hook is a small Python script in .claude/hooks/, wired up in settings.json.
You need Python 3.12 or later, uv, and ruff. Install ruff as a uv tool so the hook can call it from anywhere:
$ uv tool install ruffThen sync the project:
$ uv syncStart Claude Code in this folder:
$ claudeThen:
Run /hooks inside Claude Code to list the wired hooks, or start Claude Code with claude --debug-file /tmp/hooks-debug.txt and scan the log for [DEBUG] Hook lines to watch them fire.
| Back | FazBrowse Home | New Git URL |