Contents

ruff 0.15.1

0

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

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

Stars: 45814, Watchers: 45814, Forks: 1779, Open Issues: 1898

The astral-sh/ruff repo was created 3 years ago and the last code push was 48 minutes ago.
The project is extremely popular with a mindblowing 45814 github stars!

How to Install ruff

You can install ruff using pip

pip install ruff

or add it to a project with poetry

poetry add ruff

Package Details

Author
None
License
None
Homepage
https://docs.astral.sh/ruff
PyPi:
https://pypi.org/project/ruff/
Documentation:
https://docs.astral.sh/ruff/
GitHub Repo:
https://github.com/charliermarsh/ruff

Classifiers

  • Software Development/Libraries/Python Modules
  • Software Development/Quality Assurance
No  ruff  pypi packages just yet.

Errors

A list of common ruff errors.

Code Examples

Here are some ruff code examples and snippets.

GitHub Issues

The ruff package has 1898 open issues on GitHub

  • UP046 triggers on Python versions < 3.12
  • [ty] Track dictionary literal keys as individual places
  • Skip walking toml/markdown files for linter
  • [flake8-bandit] Fix false positive for zipfile.extractall (S202)
  • Fix WSL detection in non-Docker containers
  • [ty] Add support for goto-type, goto-declaration, and hover of string annotations
  • New benchmark of large file containing multiple suppressions
  • Ruff 0.15
  • Update MSRV to 1.91
  • [experimenting]
  • 0.14.14 breaks block suppresion
  • [ty] Infer ParamSpec from class constructors for callable protocols
  • [ty] Only add ./src as a search path if ./src/__init__.py(i) does not exist
  • [airflow] Add ruff rules to catch deprecated attribute access from context key for Airflow 3.0 (AIR301)
  • PERF403 On Nested For Loops With Body

See more issues on GitHub

Related Packages & Articles

flake8 7.3.0

the modular source code checker: pep8 pyflakes and co

bandit 1.9.3

Security oriented static analyser for python code.

astroid 4.1.0

An abstract syntax tree for Python with inference support.

pyparsing 3.3.2

pyparsing - Classes and methods to define and execute parsing grammars