Python Linter

Open-source Python projects categorized as Linter

Top 23 Python Linter Projects

  • mypy

    Optional static typing for Python

    Project mention: It is becoming difficult for me to be productive in Python | | 2023-02-06

    It's pretty common for codebases to use CI and CD to automatically package, run tests, upload, and/or deploy projects. If you add mypy to your CI test pipeline, then no code will pass tests that violates type annotations, and therefore, you can not deploy code that violates the stated types.

  • pre-commit

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

    Project mention: Git commit hooks | | 2023-02-06

    Have you looked at commitizen? It does most of what you want 'out-of-the-box' and can be configured to do the rest. Then add pre-commit to complete the picture and tie in to hook scripts.

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • isort

    A Python utility / library to sort imports.

    Project mention: How I start every new Python backend API project | | 2023-01-19


  • bandit

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

    Project mention: Which CI/CD learn first? | | 2022-08-06

    Add security checks (Bandit) and dependency checks (safety)

  • Pylint

    It's not just a linter that annoys you!

    Project mention: Pylint 2.16.0 released | | 2023-02-01
  • proselint

    A linter for prose.

    Project mention: Writing like a pro with vale & neovim | | 2022-05-27

    You can try proselint, which also has built-in support in null-ls. Its LaTeX support isn't perfect, but it's workable.

  • pytype

    A static type analyzer for Python code

    Project mention: The Python Paradox | | 2023-01-26

    Check out

  • Sonar

    Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • pre-commit-hooks

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

    Project mention: How I use pre-commit for Terraform | | 2022-10-19

    Personally I do also add "end-of-file-fixer" and "trailing-whitespace" from the "" repo. That cleans up and normalizes some files as well.

  • 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: Ruff: A new, fast and correct Python checker/linter | | 2023-01-26

    Here are insights about flake8, black, and mypy and the amount of work that went into mypy seems … just massive?!

  • pyupgrade

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

    Project mention: Reasons Python Sucks | | 2023-01-15

    That's a decade to make a 30 second change. Add something like to your pre-commit hooks and you won't even need 25 of those seconds.

  • yamllint

    A linter for YAML files.

    Project mention: IT Pro Tuesday #227 - Notification Tool, SPF/DKIM/DMARC Tutorial, YAML Linter & More | | 2022-11-15

    yamllint, as the name suggests, is a linter for YAML files. It checks syntax validity, as well as looking for more-complex errors like key repetition and cosmetic problems such as line length, trailing spaces, indentation etc. This one was indly recommended by yankdevil.

  • wemake-python-styleguide

    The strictest and most opinionated python linter ever!

    Project mention: Is my new Python library good? | | 2022-09-21

    Anyway, create a venv, pip install and Black, format your code and check it with flake8.

  • cfn-python-lint

    CloudFormation Linter

    Project mention: Managing low-code environments with AWS CloudFormation and Azure Resource Manager | | 2023-02-06

    Automate testing and validation: Before deploying your templates, it's important to test and validate them to ensure that they will work as expected. Use tools like AWS CloudFormation Linter and Azure Resource Manager Template Tester to automate this process.

  • prospector

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

    Project mention: Prospector vs running pylint/pycodestyle/mypy/etc individually? | | 2022-09-25

    Looking into it, I'm surprised as well. They're also both PyCQA projects, albeit with different maintainers. It's also kind of odd that prospector's pre-commit config runs both prospector and flake8 -- that seems redundant.

  • pyflakes

    A simple program which checks Python source files for errors

    Project mention: Why are python coding standards such a mess, what is everything and where do I start? | | 2022-07-21


  • cpplint

    Static code checker for C++

  • pydocstyle

    docstring style checker

    Project mention: Best general packages to use for Python projects | | 2022-06-13

    Not so much for the project but for project support I always use black for formatting. mypy to check my code. pydocstyle to check the comments.

  • pylama

    Code audit tool for python.

    Project mention: How pythonic is enough pythonic? | | 2022-03-27

    Use a code linter. And potentially use black.

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

    Project mention: Python toolkits | | 2022-07-15

    flake8-bugbear for finding likely bugs and design problems in your program. flake8-bugbear - Finding likely bugs and design problems in your program.

  • sublime-phpcs

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

    Project mention: Debugging Python with a virtual environment in VSCode | | 2022-10-30

    My current job is mainly Python, so there was a steep learning curve. I have done some Python previously, but mainly for writing Sublime Text plugins back in the day.

  • autoflake

    Removes unused imports and unused variables as reported by pyflakes

    Project mention: Quick wins in improving your Python codebase health | | 2022-12-31

    Having unused imports in a Python file is a prevalent issue, with a very easy solution: autoflake. Running it over your files will remove any unused imports in place.

  • best-of-python-dev

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

  • reorder_python_imports

    Rewrites source to reorder python imports

    Project mention: Boring Python: Code Quality | | 2022-12-20

    Two developers on the same python project should also use the same version... with poetry it is straightforward to keep track of dev dependencies. Reorder python imports is an alternative for isort:

  • SaaSHub

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

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). The latest post mention was on 2023-02-06.

Python Linter related posts


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

Project Stars
1 mypy 14,798
2 pre-commit 9,665
3 isort 5,593
4 bandit 4,931
5 Pylint 4,488
6 proselint 4,128
7 pytype 4,102
8 pre-commit-hooks 3,807
9 Flake8 2,626
10 pyupgrade 2,453
11 yamllint 2,254
12 wemake-python-styleguide 2,136
13 cfn-python-lint 2,097
14 prospector 1,757
15 pyflakes 1,230
16 cpplint 1,206
17 pydocstyle 1,001
18 pylama 975
19 flake8-bugbear 909
20 sublime-phpcs 803
21 autoflake 700
22 best-of-python-dev 662
23 reorder_python_imports 604
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives