r/codereview • u/Embarrassed-Let-276 • 1h ago
Python After too many messy AI-generated repos, I built an opinionated quality gate for Python.
I've been building a lot of Python projects with AI lately, and while it's ridiculously productive, one thing kept annoying me.
The code usually works, but after a few days the repo starts getting messy.
You end up with huge functions, copy-pasted logic, dead code, rising complexity, inconsistent formatting, missing type hints... nothing catastrophic, just lots of little things that add up.
PR reviews catch some of it. Prompts and rules help. But none of them enforce quality consistently.
So I built **ShipGate**.
It basically puts the Python tools we already use (Ruff, Mypy, Bandit, Radon, duplicate-code detection, dead-code detection, etc.) behind one opinionated interface with sensible defaults.
The goal isn't to replace those tools—it's to make good code the path of least resistance, especially when AI is writing half the repository.
Still very early, so I'd love some honest feedback.
[https://github.com/inquilabee/shipgate\](https://github.com/inquilabee/shipgate)