Story

Show HN: Sloppylint – A linter for AI-generated Python code

kyub Friday, December 05, 2025

AI coding assistants are productive but sloppy. They produce code that looks right but:

- Imports packages that don't exist - Uses placeholder functions that do nothing - Leaks patterns from JavaScript, Java, Ruby into Python - Leaves behind dead code and duplicates - Uses mutable default arguments

I built sloppylint to catch these "AI slop" patterns before they hit production.

     pip install sloppylint
     sloppylint .
It detects 100+ patterns across categories: - Hallucinated imports (20% of AI imports reference non-existent packages) - Placeholder code (`pass`, `...`, `TODO`) - Wrong-language patterns (.push(), .equals(), .forEach()) - Mutable defaults, bare excepts, dead code

This isn't a replacement for traditional linters - it catches the specific mistakes AI makes that humans wouldn't.

https://github.com/rsionnach/sloppylint

Summary
SloppyLint is a Python linting tool that focuses on detecting and fixing common code style issues, with a focus on readability and maintainability. It provides a set of customizable rules and automated fixes to help developers maintain consistent code formatting and adhere to best practices.
9 3
Summary
github.com
Visit article Read on Hacker News Comments 3