---
title: "Python Hooks"
description: "> This file extends the common hooks rule with Python specific content."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/python-hooks
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:37:19.195Z
license: CC-BY-4.0
attribution: "Python Hooks — Claudary (https://claudary.paisolsolutions.com/skills/python-hooks)"
---

# Python Hooks
> This file extends the common hooks rule with Python specific content.

## Overview

---
description: "Python hooks extending common rules"
globs: ["**/*.py", "**/*.pyi"]
alwaysApply: false
---
# Python Hooks

> This file extends the common hooks rule with Python specific content.

## PostToolUse Hooks

Configure in `~/.claude/settings.json`:

- **black/ruff**: Auto-format `.py` files after edit
- **mypy/pyright**: Run type checking after editing `.py` files

## Warnings

- Warn about `print()` statements in edited files (use `logging` module instead)

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/python-hooks) · https://claudary.paisolsolutions.com
