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.
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.
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.
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 →
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.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
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.