Python Linter

Open-source Python projects categorized as Linter

Top 23 Python Linter Projects

  • mypy

    Optional static typing for Python

  • Project mention: The GIL can now be disabled in Python's main branch | news.ycombinator.com | 2024-03-11
  • pre-commit

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

  • Project mention: How to setup Black and pre-commit in python for auto text-formatting on commit | dev.to | 2024-03-29

    Today we are going to look at how to setup Black (a python code formatter) and pre-commit (a package for handling git hooks in python) to automatically format you code on commit.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • isort

    A Python utility / library to sort imports.

  • Project mention: Enhance Your Project Quality with These Top Python Libraries | dev.to | 2024-03-18

    isort: This library sorts your imports alphabetically, and automatically separates them into sections and by type. It provides a cleaner and more organised way to manage project imports.

  • bandit

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

  • Project mention: Enhance Your Project Quality with These Top Python Libraries | dev.to | 2024-03-18

    Bandit is a tool designed to find common security issues in Python code. It was developed by the OpenStack Security Project and is a great addition to any serious Python project.

  • Pylint

    It's not just a linter that annoys you!

  • Project mention: W1203: logging-fstring-interpolation (Solved) | dev.to | 2024-01-21

    A little introduction about pylint. Pylint is a static code analyzer, it analyses your code without actually running it. Pylint looks for potential errors, gives suggestions on coding standards that your code is not adhering to, potential places where refactoring might help, and also warnings about smelly code.

  • pre-commit-hooks

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

  • Project mention: Implementing Quality Checks In Your Git Workflow With Hooks and pre-commit | dev.to | 2023-12-13

    # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.2.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-toml - id: check-added-large-files - repo: local hooks: - id: tox lint name: tox-validation entry: pdm run tox -e test,lint language: system files: ^src\/.+py$|pyproject.toml|^tests\/.+py$ types_or: [python, toml] pass_filenames: false - id: tox docs name: tox-docs language: system entry: pdm run tox -e docs types_or: [python, rst, toml] files: ^src\/.+py$|pyproject.toml|^docs\/ pass_filenames: false - repo: https://github.com/pdm-project/pdm rev: 2.10.4 # a PDM release exposing the hook hooks: - id: pdm-lock-check - repo: https://github.com/jumanjihouse/pre-commit-hooks rev: 3.0.0 hooks: - id: markdownlint

  • pytype

    A static type analyzer for Python code

  • Project mention: Google lays off its Python team | news.ycombinator.com | 2024-04-27

    it's open source! check out https://github.com/google/pytype and https://github.com/google/pytype/blob/main/docs/developers/t... for more on the multi-file runner

  • SaaSHub

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

    SaaSHub logo
  • proselint

    A linter for prose.

  • Project mention: Getting Started with Technical Writing | news.ycombinator.com | 2023-11-27

    So cool. Looks like the proseline site is down. For anyone else who wanted to read the approach - https://github.com/amperser/proselint/blob/b5b7536bec5fd461e...

  • pyupgrade

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

  • Project mention: A Tale of Two Kitchens - Hypermodernizing Your Python Code Base | dev.to | 2023-11-12

    pyupgrade and flynt are examples of tools that modify your code base from earlier python versions into the newest python syntax, rewriting all string formats into f-strings and similar things.

  • 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: To Review or Not to Review: The Debate on Mandatory Code Reviews | dev.to | 2024-04-24

    Automating code checks with static code analysis allows us to enforce code styling effectively. By integrating tools into our workflow, we can identify errors at an early stage, while coding instead of blocking us at the end. For instance, flake8 checks Python code for style and errors, eslint performs similar checks for JavaScript, and prettier automatically formats code to maintain consistency.

  • yamllint

    A linter for YAML files.

  • Project mention: yamllint – A Linter for YAML Files | news.ycombinator.com | 2023-09-20
  • wemake-python-styleguide

    The strictest and most opinionated python linter ever!

  • cfn-python-lint

    CloudFormation Linter

  • Project mention: Deploy config rules across your organization | dev.to | 2024-02-15

    Now the first 3 options are pretty straight forward. The template itself is a bit more complicated. In my example I used an inline template, I did this for the sake of this blog. But you can also reference an existing object on S3. This way you can use linting tools like cfn-lint on your conformance pack. This will reduce errors during deployment as you can catch them before you commit and push your code.

  • prospector

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

  • cpplint

    Static code checker for C++

  • Project mention: Configuring Cppcheck, Cpplint, and JSON Lint | dev.to | 2024-03-04

    I was configuring them as I was reading. I have done this before, but we had some months of use since then, and I have seen it working in real-time. I got a lot out of this second read and configuration round. I discovered that I over-configured Cppcheck; there is much more to get out of Cpplint, and I reviewed the JSON Schema versions.

  • pyflakes

    A simple program which checks Python source files for errors

  • Project mention: Enhance Your Project Quality with These Top Python Libraries | dev.to | 2024-03-18

    Pyflakes is a simple program that checks Python source files for errors. It is similar to PyLint but focuses only on errors, not style. This makes it faster and less intrusive than some other tools.

  • pylama

    Code audit tool for python.

  • Project mention: Enhance Your Project Quality with These Top Python Libraries | dev.to | 2024-03-18

    Pylama is a code audit tool for Python that wraps tools like Pylint, pycodestyle, PyFlakes, McCabe, and others to provide a unified interface.

  • 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: A Tale of Two Kitchens - Hypermodernizing Your Python Code Base | dev.to | 2023-11-12

    Bugbear is not specifically a security tool but serves as an effective guard against common coding errors and pitfalls. It pinpoints and rectifies frequent mistakes like setting a list as a default value for a parameter and cautions against such practices, enhancing code robustness.

  • best-of-python-dev

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

  • autoflake

    Removes unused imports and unused variables as reported by pyflakes

  • Project mention: Embracing Modern Python for Web Development | dev.to | 2023-12-08

    Ruff is not only much faster, but it is also very convenient to have an all-in-one solution that replaces multiple other widely used tools: Flake8 (linter), isort (imports sorting), Black (code formatter), autoflake, many Flake8 plugins and more. And it has drop-in parity with these tools, so it is really straightforward to migrate from them to Ruff.

  • sublime-phpcs

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

  • Project mention: Laravel code-quality tools | dev.to | 2024-02-08

    Sublime-phpcs - adds support for PHP_CodeSniffer, PHP Code Beautifier, PHP CS Fixer, PHP Linter, and PHP Mess Detector.

  • reorder-python-imports

    Rewrites source to reorder python imports

  • Deal

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

  • 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 related posts

  • Enhance Your Project Quality with These Top Python Libraries

    16 projects | dev.to | 18 Mar 2024
  • Enhance your python code security using bandit

    1 project | dev.to | 29 Feb 2024
  • Deploy config rules across your organization

    1 project | dev.to | 15 Feb 2024
  • Show HN: Codemodder – A new codemod library for Java and Python

    7 projects | news.ycombinator.com | 23 Jan 2024
  • W1203: logging-fstring-interpolation (Solved)

    1 project | dev.to | 21 Jan 2024
  • flynt – convert old Python code to use Python 3.6's "f-strings"

    1 project | news.ycombinator.com | 29 Dec 2023
  • Implementing Quality Checks In Your Git Workflow With Hooks and pre-commit

    6 projects | dev.to | 13 Dec 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 4 May 2024
    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 17,569
2 pre-commit 12,087
3 isort 6,321
4 bandit 6,008
5 Pylint 5,127
6 pre-commit-hooks 4,889
7 pytype 4,602
8 proselint 4,282
9 pyupgrade 3,330
10 Flake8 3,263
11 yamllint 2,716
12 wemake-python-styleguide 2,430
13 cfn-python-lint 2,356
14 prospector 1,907
15 cpplint 1,463
16 pyflakes 1,340
17 pylama 1,039
18 flake8-bugbear 1,036
19 best-of-python-dev 914
20 autoflake 862
21 sublime-phpcs 809
22 reorder-python-imports 709
23 Deal 691

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