---
title: "Ruff v0.16.0"
description: "Ruff v0.16.0 expands the default lint rule set from 59 to 413 rules, adding flake8-bugbear, pyupgrade and RUF rules while dropping 18 opinionated pycodestyle/pyflakes rules; the old defaults can be restored with select = [\"E4\", \"E7\", \"E9\", \"F\"]."
url: "https://swe.quest/articles/ruff-v0-16-0-b441fc20d59a5cf8"
canonical: "https://astral.sh/blog/ruff-v0.16.0"
source: "Astral"
published: "2026-07-23"
difficulty: "medium"
kind: "Release"
reading_minutes: 6
tags: ["python","static-analysis","developer-tools"]
---

# Ruff v0.16.0

A post on [Astral](https://swe.quest/sources/astral.md), published 2026-07-23, 6 min read, Release. Original: [https://astral.sh/blog/ruff-v0.16.0](https://astral.sh/blog/ruff-v0.16.0)

## Summary

Ruff v0.16.0 expands the default lint rule set from 59 to 413 rules, adding flake8-bugbear, pyupgrade and RUF rules while dropping 18 opinionated pycodestyle/pyflakes rules; the old defaults can be restored with select = \["E4", "E7", "E9", "F"\]. The release stabilizes formatting of Python code blocks in Markdown (including pyi and pycon blocks and Quarto files), and adds new \`ruff: ignore\` and \`ruff: file-ignore\` suppression comments with optional reasons and an \`--add-ignore\` flag. Fix diffs now appear inline in \`check\` and \`format --check\` output, and \`format --check\` gains the linter's full set of output formats. A small breaking JSON change makes location fields nullable, and a dozen preview rules are stabilized.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Python](https://swe.quest/tags/python.md) (Languages)
- [Static analysis](https://swe.quest/tags/static-analysis.md) (Engineering practices)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- Python linting ([easy posts on Python](https://swe.quest/tags/python.md?difficulty=easy))
- pyproject/ruff configuration ([easy posts on Configuration management](https://swe.quest/tags/configuration.md?difficulty=easy))

## Keywords

Ruff, Astral, flake8-bugbear, pyupgrade, Quarto, Markdown

## Related posts

- [Fixit 2: Meta’s next-generation auto-fixing linter](https://swe.quest/articles/fixit-2-meta-s-next-generation-auto-fixing-linter-71b7e5da0973759e.md): Meta Engineering · 2023-08-07 · Medium · 6 min read · Static analysis, Python, Developer tools, Refactoring & migrations, Open source
  Fixit 2 is a partial rewrite of Meta's open-source Python auto-fixing linter, built on LibCST so rules can safely suggest and apply code replacements without regex or broken syntax.
- [Python 3.15](https://swe.quest/articles/python-3-15-dac73d5d8c836912.md): Astral · 2026-10-09 · Medium · 11 min read · Python, Developer tools, Type systems, Performance engineering, Static analysis
  Python 3.15 adds a \`lazy\` import keyword (PEP 810), a stdlib \`profiling\` module with the low-overhead Tachyon sampling profiler, new typing features (closed/extra\_items TypedDicts, TypeForm), \`sentinel\` and \`frozendict\` builtins, and \`\*\`/\`\*\*\` unpacking in comprehensions.
- [How we use Vale to improve our documentation editing process](https://swe.quest/articles/how-we-use-vale-to-improve-our-documentation-editing-process-840fb8afef3af44a.md): Datadog Engineering · 2024-02-14 · Medium · 9 min read · Documentation, CI/CD, Static analysis, Developer tools
  Datadog's documentation team, outnumbered roughly 200 developers to 1 writer and merging over 20,000 docs PRs in 2023, encodes its style guide as Vale prose-linting rules in an open-sourced datadog-vale repo.
- [Zed Has Rainbow Brackets](https://swe.quest/articles/zed-has-rainbow-brackets-56d1fa479c442850.md): Zed · 2025-12-03 · Medium · 6 min read · Developer tools, Rust, Caching, Performance engineering, Testing
  Zed implements rainbow brackets without language servers or a persistent syntax tree by running each language's tree-sitter brackets.scm queries over independent 50-row chunks and coloring pairs by nesting depth across 7 cycling theme accent colors.
- [Bun v1.4.4](https://swe.quest/articles/bun-v1-4-4-9f8e0a1d10885e90.md): Bun · 2026-10-22 · Medium · 82 min read · JavaScript, Developer tools, Build systems, Performance engineering, TypeScript
  Bun v1.4.4 adds \`bun fmt\`, a built-in Prettier-compatible formatter ported from Prettier and oxc\_formatter that reads existing Prettier/oxfmt configs and covers more than 20 languages.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
