Python Linter

Open-source Python projects categorized as Linter

Top 23 Python Linter Projects

  1. mypy

    Optional static typing for Python

    Project mention: Google Replaces pytype With Pyrefly: Which Type Checker in 2026 | dev.to | 2026-10-20

    python/mypy on GitHub (README: mypyc-compiled mypy)

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. pre-commit

    A framework for managing and maintaining multi-language pre-commit hooks.

    Project mention: Your coding agent already saved the API key you thought was only in .env | dev.to | 2026-11-09

    The repo ships .pre-commit-hooks.yaml for the pre-commit framework. Pin rev to a tag:

  4. bandit

    Bandit is a tool designed to find common security issues in Python code.

    Project mention: CodeQL en la práctica: rastreando vulnerabilidades en una app Flask con GitHub Actions y Render | dev.to | 2026-10-15

    PyCQA. Bandit documentation. https://bandit.readthedocs.io/

  5. isort

    A Python utility / library to sort imports.

    Project mention: Automated Refactoring: Making Maintenance a Habit | dev.to | 2026-08-08
  6. pre-commit-hooks

    Some out-of-the-box hooks for pre-commit

    Project mention: Git Hooks Not Running for Teammates? Husky vs Lefthook vs pre-commit | dev.to | 2026-10-31

    # .pre-commit-config.yaml repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-merge-conflict

  7. Pylint

    It's not just a linter that annoys you!

  8. pyupgrade

    A tool (and pre-commit hook) to automatically upgrade syntax for newer versions of the language.

  9. Flake8

    flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.

    Project mention: How to Set Up Pre-Commit Hooks for Teams Using AI Coding Assistants | dev.to | 2026-04-19
  10. yamllint

    A linter for YAML files.

    Project mention: Best Online YAML Linter Tools in 2026 | dev.to | 2026-03-25
  11. wemake-python-styleguide

    The strictest and most opinionated python linter ever!

    Project mention: Python Code Quality with Agents | news.ycombinator.com | 2026-08-20
  12. cfn-python-lint

    CloudFormation Linter

  13. prospector

    Inspects Python source files and provides information about type and location of classes, methods etc

  14. cpplint

    Linter for C++ based on Google's style guide

  15. godot-gdscript-toolkit

    Independent set of GDScript tools - parser, linter, formatter, and more

  16. pyflakes

    A simple program which checks Python source files for errors

  17. best-of-python-dev

    🏆 A ranked list of awesome python developer tools and libraries. Updated weekly.

  18. import-linter

    Lint your Python architecture.

  19. gixy

    NGINX configuration static analyzer (by dvershinin)

    Project mention: The nginx misconfigurations that fail silently | dev.to | 2026-08-29

    I maintain gixy-ng, a static analyzer for nginx configs. A growing share of its checks exist for exactly this category, because it turns out static analysis is the only practical way to catch a failure that produces no signal at runtime. Here are four worth knowing about.

  20. flake8-bugbear

    A plugin for Flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle.

  21. pylama

    Code audit tool for python.

  22. djLint

    HTML template formatter and linter for Django, Jinja, Twig, Nunjucks, Handlebars, Mustache, Liquid, Go templates, Angular, Tera, Askama and Mako. Formats markup and template syntax together, and lints for accessibility, correctness and style. CLI, pre-commit hook and VS Code extension.

  23. autoflake

    Removes unused imports and unused variables as reported by pyflakes

  24. Deal

    🤝 Design by contract for Python. Write bug-free code. Add a few decorators, get static analysis and tests for free.

    Project mention: Test, Don't (Just) Verify | news.ycombinator.com | 2025-12-23

    I wonder if Design by Contract or schema-first design might take off as a way of structuring AI output and allowing it to rapidly iterate toward goals. I'm starting to try these methods out for myself with AI to see where they lead. Looking into https://deal.readthedocs.io/

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python Linter discussion

Log in or Post with

Python Linter related posts

  • Your coding agent already saved the API key you thought was only in .env

    2 projects | dev.to | 9 Nov 2026
  • Git Hooks Not Running for Teammates? Husky vs Lefthook vs pre-commit

    1 project | dev.to | 31 Oct 2026
  • Microsoft Announces Type Server Protocol, Extension of Language Server Protocol

    6 projects | news.ycombinator.com | 26 Oct 2026
  • Google Replaces pytype With Pyrefly: Which Type Checker in 2026

    6 projects | dev.to | 20 Oct 2026
  • CodeQL en la práctica: rastreando vulnerabilidades en una app Flask con GitHub Actions y Render

    5 projects | dev.to | 15 Oct 2026
  • ScopeGuard: an open-weight model that tells freelancers when "quick one" means "paid one"

    3 projects | dev.to | 15 Oct 2026
  • Before I let an agent open PRs on strangers' repos, I made it earn it

    1 project | dev.to | 14 Oct 2026
  • A note from our sponsor - SaaSHub
    www.saashub.com | 12 Nov 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source Linter projects in Python? This list will help you:

# Project Stars
1 mypy 20,717
2 pre-commit 15,687
3 bandit 8,375
4 isort 6,966
5 pre-commit-hooks 6,744
6 Pylint 5,745
7 pyupgrade 4,126
8 Flake8 3,833
9 yamllint 3,489
10 wemake-python-styleguide 2,944
11 cfn-python-lint 2,643
12 prospector 2,084
13 cpplint 1,860
14 godot-gdscript-toolkit 1,616
15 pyflakes 1,465
16 best-of-python-dev 1,321
17 import-linter 1,253
18 gixy 1,192
19 flake8-bugbear 1,124
20 pylama 1,048
21 djLint 956
22 autoflake 953
23 Deal 920

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you know that Python is
the 1st most popular programming language
based on number of references?