Skip to content

Instantly share code, notes, and snippets.

View glennmatlin's full-sized avatar
😎
The Dude Abides

Glenn Matlin glennmatlin

😎
The Dude Abides
View GitHub Profile
@glennmatlin
glennmatlin / claude_code_hooks_for_uv.md
Last active February 4, 2026 03:44
Claude Code hooks for working with `uv`

Claude Code Hooks for working with uv

by Glenn Matlin / glennmatlin on all socials

What This Does

Prevents Claude Code from using pip, python, pytest, etc. directly in projects that use uv for Python environment management. Instead, Claude is guided to use uv run, uv add, etc.

Smart detection:

  • Only activates in directories with pyproject.toml