Ruff v0.16.0 is released with several notable changes. The default rule set expands from 59 to 413 enabled rules, catching more severe issues like syntax errors and runtime bugs out of the box. New features include formatting Python code blocks embedded in Markdown files, new suppression comment formats (ruff: ignore, ruff: file-ignore) with optional reason strings and rule-name support in preview, and diffs now shown inline in check and format --check output. Twelve rules are stabilized out of preview, and various behavior improvements are included. A small breaking change affects JSON output field nullability.

7m read timeFrom astral.sh
Post cover image
Table of contents
Migrating to v0.16 #New features in v0.16 #Rule stabilizations #Other behavior stabilizations #Thank you! #
19K Impressions