Show HN: Gawain – Require type hints on all Python variables
Category: devtools
Tags: python, linter, type-annotations, rust, static-analysis
Score: 5.8/10 (Innovation: 4, Technical: 6, Documentation: 8, Utility: 5)
Gawain is a Rust-based linter that enforces type annotations on all Python variables, parameters, returns, and class attributes, then runs a type checker (ty or pyrefly) for verification. It fills a narrow gap left by ruff's ANN rules and flake8-annotations by also requiring annotations on variables and class attributes, with configurable modes and fast performance.
Target audience: backend devs, python developers, devops
Repository: https://github.com/matheuzgomes/gawain · Rust · MIT · 1 stars
View on Hacker News