Ruff v0.16.0 expands default rules, adds Markdown formatting
Astral released Ruff v0.16.0, expanding its default Python linting rules from 59 to 413 to catch syntax errors and runtime bugs out of the box. The update also adds support for formatting embedded Python code blocks in Markdown and Quarto files alongside new line-level suppression comments.
Expanding default rules nearly sevenfold is a high-impact, opinionated move that drastically elevates baseline Python code quality across the ecosystem while requiring legacy projects to explicitly manage rule selections during upgrade.
• Defaulting to 413 active rules dramatically lowers the barrier to catching runtime bugs and bad practices for new and unconfigured projects.
• Adding Markdown code block formatting positions Ruff as a comprehensive formatting solution for documentation, notebooks, and READMEs.
• Dedicated single-line (`ruff: ignore`) and file-wide (`ruff: file-ignore`) comment directives simplify code suppression compared to legacy `# noqa` pragmas.
• Clear configuration options allow existing codebases to easily retain older rule sets if immediate compliance with 354 new default rules is impractical.
DISCOVERED
1h ago
2026-07-26
PUBLISHED
5h ago
2026-07-26
RELEVANCE
AUTHOR
vismit2000
