The Ruff python linter is insanely good

This page summarizes the projects mentioned and recommended in the original post on /r/Python

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • ruff

    An extremely fast Python linter and code formatter, written in Rust.

  • I just migrated some of my projects over to using ruff, and I am EXTREMELY impressed. It is quite literally 100 times faster than my previous linting configuration, all while being more organized and powerful. It's mind boggling fast. It has all of the plugins builtin that I was previously using with tools like flake8. It hooks into `pre-commit` and replaces many plugins I had before like:

  • python-template

    Python project and library template for clean, reliable, open-source projects.

  • By the way, if you want to checkout my python template, it has my preferred ruff configuration:https://github.com/BrianPugh/python-template

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • black

    The uncompromising Python code formatter

  • The whole point of Black is that it's opinionated and that it knows better than you. I can always recommend you read the single quotes incident on GitHub to gain more insight about what Black really is: https://github.com/psf/black/issues/118

  • vim-lsp

    async language server protocol plugin for vim and neovim

  • - add the [prabirshrestha/vim-lsp](https://github.com/prabirshrestha/vim-lsp) plugin and config to your `.vimrc` (note: `pylsp` is *not* necessary).

  • prospector

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

  • Just before discovering ruff, I was already migrating to PyCQA/prospector to simplify my configs...

  • treefmt

    one CLI to format your repo

  • In the same vein as LSP/pre-commit/Ruff/Black, I found the treefmt (rust) project very promising.

  • flake8-bandit

    Automated security testing using bandit and flake8.

  • flake8-bandit uses bandit behind the scenes: https://github.com/tylerwince/flake8-bandit/blob/main/flake8_bandit.py ruff doesn't and implements the rules directly

  • 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
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts