← All stories
● Covered by 1 source · 1 reportMedium impact1 neutral

Ruff v0.16.0 Increases Default Rules to 413 and Adds Markdown Formatting

🔄 Updated 49d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Ruff v0.16.0 released with 413 default rules, up from 59.
  • New default rules include severe issue detection.
  • Ruff can now format Python code blocks in Markdown files.
  • Breaking changes are minimal for most users.

Expanded Default Rule Set

Ruff v0.16.0 now enables 413 rules by default, a substantial increase from the previous 59. This expansion incorporates many rules that detect severe issues, including syntax errors and immediate runtime errors, which were not previously active by default. The goal is to bring more potential problems to users' attention without requiring manual configuration.

New Markdown Formatting Capability

A new feature in Ruff v0.16.0 allows it to format Python code blocks embedded within Markdown files. This functionality supports fenced code blocks with info strings such as `python`, `py`, `python3`, `py3`, `pyi`, or `pycon`. This also extends to formatting Quarto notebooks, as Ruff recognizes the language when surrounded by curly braces.

Minimal Breaking Changes

The v0.16.0 release includes a small number of breaking changes, allowing most users to update without significant modifications to their existing code or configuration. Users who wish to revert to the old default rule set can do so with a specific configuration setting.

Impact on Developers

This update provides developers with more comprehensive linting and formatting out-of-the-box, potentially catching more issues earlier in the development cycle. The addition of Markdown formatting streamlines workflows for projects that include Python code in their documentation or notebooks, reducing the need for separate formatting tools.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~34 min · 27 stories · Oct 02

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

Ruff, a fast Python linter and formatter, released version 0.16.0, which significantly expands its default enabled rules from 59 to 413. This update also introduces the ability to format Python code blocks embedded within Markdown files, enhancing its utility for documentation and notebooks.