Python Linter

Open-source Python projects categorized as Linter

Top 23 Python Linter Projects

  1. mypy

    Optional static typing for Python

    Project mention: Ty: An fast Python type checker and language server, written in Rust | news.ycombinator.com | 2025-05-07

    https://github.com/python/mypy/blob/501a07b45af8e44eda665e53...

    Also did you know mypy ignores typing of class decorators? You simply can't return a different type other than type[thisclass].

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. pre-commit

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

    Project mention: A Makefile formatter (50 years overdue) | news.ycombinator.com | 2025-06-19

    Nice, would be good to package this as a https://pre-commit.com/ hook.

  4. bandit

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

    Project mention: Bandit: Find common security issues in Python code | news.ycombinator.com | 2025-05-28
  5. isort

    A Python utility / library to sort imports.

    Project mention: Nix Flake Templates | dev.to | 2025-05-05

    Use black and isort for formatting.

  6. pre-commit-hooks

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

    Project mention: Refactoring Our Codebase with Ruff and Pre-commit: A Developer's Guide | dev.to | 2025-04-18
  7. Pylint

    It's not just a linter that annoys you!

    Project mention: From Vibe Coder to AI-Assisted Architect | dev.to | 2025-05-07

    I noticed this issue only after running a linter. Sometimes we’re not familiar with the tricky edge cases or conventions of a particular language. A convenient way to catch and fix such issues — including formatting, styling, and even some security problems — is to use linters. For example, you can use golangci-lint for Go, ESLint for JavaScript, and Pylint for Python. In fact, almost every widely used programming language has its own linter or code quality tool. Linters are especially helpful when generating code with AI — they help keep your code clean and safe, at least to some degree.

  8. pytype

    A static type analyzer for Python code

    Project mention: Writing that changed how I think about PL | news.ycombinator.com | 2025-05-14

    pytype is based in part upon byterun https://github.com/google/pytype/blob/main/docs/developers/i...

    I learnt a lot about bytecode interpreters from working on it, and it helped me understand the cpython source code a lot more easily from having played with a python translation of it first.

  9. SaaSHub

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

    SaaSHub logo
  10. proselint

    A linter for prose.

    Project mention: Proselint – A Linter for Prose | news.ycombinator.com | 2025-02-09
  11. pyupgrade

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

  12. 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: Top Tools for Static Analysis Help in Your Python Projects | dev.to | 2025-03-18

    Flake8: This tool checks for style errors and simple programming mistakes.

  13. yamllint

    A linter for YAML files.

    Project mention: Simple YAML Linter/Validator Workflow for GitHub Actions | dev.to | 2024-06-23

    The GitHub Actions Ubuntu runners comes with yamllint installed, meaning it's super simple to create linting/validating workflows to ensure your YAML is valid!

  14. wemake-python-styleguide

    The strictest and most opinionated python linter ever!

  15. cfn-python-lint

    CloudFormation Linter

    Project mention: What is an AWS CloudFormation Template? | dev.to | 2025-01-27

    For more complex validations, as well as basic syntax checks, you can use additional tools in your CI/CD pipelines, such as CloudFormation Linter (cfn-lint) and CloudFormation Rain (rain fmt). Another way to validate your templates is to use an IDE extension to provide real-time validation during authoring.

  16. prospector

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

  17. cpplint

    Static code checker for C++

  18. pyflakes

    A simple program which checks Python source files for errors

  19. godot-gdscript-toolkit

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

    Project mention: Godot Rust CI: Handy GDScript & Rust GitHub Actions | dev.to | 2024-08-15

    The project uses a mix of Rust and GDScript, and for linting the GDScript code in GitHub actions, I use godot-gdscript-toolkit.

  20. best-of-python-dev

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

  21. 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.

  22. pylama

    Code audit tool for python.

  23. gixy

    NGINX configuration static analyzer (by dvershinin)

    Project mention: Gixy: Nginx Configuration Static Analyzer | news.ycombinator.com | 2025-02-15

    uh, I'm hitting this one https://github.com/dvershinin/gixy/blob/master/docs/en/plugi...

    how serious is header injection? it sounds pretty serious, is it?

  24. autoflake

    Removes unused imports and unused variables as reported by pyflakes

  25. sublime-phpcs

    🔍 PHP CodeSniffer, PHP Coding Standard Fixer, Linter, and Mess Detector Support for Sublime Text

  26. SaaSHub

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

    SaaSHub logo
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

  • A Makefile formatter (50 years overdue)

    6 projects | news.ycombinator.com | 19 Jun 2025
  • Bandit: Find common security issues in Python code

    1 project | news.ycombinator.com | 28 May 2025
  • How one bad coder made our stack unbreakable

    1 project | dev.to | 18 May 2025
  • Python MCP Remote Server — The Dawn of the Streamable HTTP Era ~ With a Minimalist Template Featuring uv / Docker / pytest ~

    8 projects | dev.to | 11 May 2025
  • Ty: An fast Python type checker and language server, written in Rust

    11 projects | news.ycombinator.com | 7 May 2025
  • From Vibe Coder to AI-Assisted Architect

    5 projects | dev.to | 7 May 2025
  • 🔒 Bandit: Python Static Application Security Testing Guide

    1 project | dev.to | 23 Apr 2025
  • A note from our sponsor - SaaSHub
    www.saashub.com | 22 Jun 2025
    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 19,422
2 pre-commit 13,897
3 bandit 7,076
4 isort 6,756
5 pre-commit-hooks 5,833
6 Pylint 5,490
7 pytype 4,906
8 proselint 4,422
9 pyupgrade 3,803
10 Flake8 3,637
11 yamllint 3,086
12 wemake-python-styleguide 2,734
13 cfn-python-lint 2,546
14 prospector 2,015
15 cpplint 1,694
16 pyflakes 1,422
17 godot-gdscript-toolkit 1,209
18 best-of-python-dev 1,129
19 flake8-bugbear 1,089
20 pylama 1,053
21 gixy 1,008
22 autoflake 933
23 sublime-phpcs 814

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

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