Releases: tmustier/python-typing
Releases · tmustier/python-typing
v0.1.1 - Self-Typing
Python Typing Skill v0.1.1
What's Changed
The skill now dogfoods itself - all scripts and tests pass pyright strict mode with 0 errors.
Improvements
- Added strict type annotations to all scripts (
init_typing.py,analyze_typing.py) - Added strict type annotations to all test files
- Configured pyright to discover pytest types from venv
- Fixed
CompletedProcess[str]return type annotations
Technical Details
- Uses
from __future__ import annotationsfor Python 3.9 compatibility - pyproject.toml now configures venv discovery for type checking
- All 18 tests pass with 0 pyright strict mode errors
Full Changelog: v0.1.0...v0.1.1
v0.1.0 - Initial Release
Python Typing Skill v0.1.0
An agent skill for migrating Python codebases to strict type checking with pyright.
Features
Setup Automation
scripts/init_typing.py- Initialize typing setup in any project- Creates pyrightconfig.json (strict/standard/basic modes)
- Installs typing discipline rules
- Sets up pre-commit hook (warns on errors)
- Optional long-task-harness integration for progress tracking
- Optional ralph-wiggum integration for iteration loops (Claude Code only)
Fix Patterns & Guidance
references/patterns.md- Common fix patterns organized in 6 layers:- Quick wins (unused imports, missing return types)
- Annotation completeness (parameters, attributes)
- Type safety (None checks, narrowing, unions)
- Structural patterns (TypedDict, Protocol, conditional imports)
- External dependencies (stubs, third-party workarounds)
- Edge cases (complex generics, metaprogramming)
references/faq.md- Detailed FAQ for common questions
Typing Discipline Rules
Enforced via long-task-harness rules:
block-type-ignore- No# type: ignorewithout documentationblock-gratuitous-assert- Warns onassert x is not Nonehackswarn-any-type- Warns on explicitAnyusagewarn-cast-overuse- Warns oncast()usage
Analysis Tools
scripts/analyze_typing.py- Analyze error distribution- Breakdown by error type with hints
- Breakdown by file
- Suggested starting point
Installation
git clone https://github.com/tmustier/python-typing ~/.claude/skills/python-typingUsage
Ask your AI agent:
Set up strict type checking for this project
Tests
18 tests covering:
- init_typing.py functionality (10 tests)
- analyze_typing.py parsing (8 tests)
- Test fixtures with known error counts
Run with:
uv run pytest tests/ -vRequirements
- Python 3.9+
- pyright (via npm or pip)
- Optional: long-task-harness, ralph-wiggum
License
MIT