Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Ruff Is An Extremely Fast Python Linter Written in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Use ruff In a uv Managed Python Project

uv run ruff check 
uv run ruff format . 

Use ruff Standalone

The most convenient way to use run ruff standalone is via uvx.

uvx ruff check /some/path
uvx ruff format /some/path

Format Python Scripts with Indention Width = 2

ruff format --config indent-width=2 path/to/file.py

Formatting Code in Jupyter Notebooks and Markdown Files

  1. Ruff supports formatting Python code in Jupyter notebooks.

  2. As of early 2026, Ruff supports formatting code blocks in Markdown files as a preview feature.

References