Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Astral 6 min read Release mediumAdept

Ruff v0.15.0

Ruff v0.15.0 introduces the 2026 formatter style guide, block-level lint suppressions, sixteen newly stable lint rules and six stabilized rule behaviors. The new style keeps lambda parameters on one line and parenthesizes long bodies, drops parentheses around multi-exception `except` clauses on Python 3.14+ (PEP 758), and keeps a single blank line at the start of function bodies. `# fmt: skip` now covers the whole logical line, so one-liners stay intact. New `ruff: disable[...]`/`ruff: enable[...]` comments suppress specific rules across a block, and RUF103/RUF104 validate those comments. Breaking changes include updated Alpine/Debian Docker base images and dropped ppc64 binaries.

Related posts

  • Ruff v0.16.0

    Astral mediumAdept

    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.

  • Python 3.15

    Astral mediumAdept

    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. Ruff v0.17 adds lint rules TID254 and TID255 for enforcing and validating import laziness. uv gains a preview flag that makes build-backend imports lazy, speeding wheel builds by up to 18%. Windows x86-64 builds get 15-20% pyperformance gains from the Clang tail-call interpreter, ARM64 builds become the default on Windows ARM, and Ruff's default target moves to 3.11 as Python 3.10 reaches end of life.

  • Fixit 2: Meta’s next-generation auto-fixing linter

    Meta Engineering mediumAdept

    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. Compared with Flake8, which only reports line/column, cannot suggest fixes and relies on the stdlib ast module, Fixit 2 adds local in-repo lint rules, hierarchical TOML configuration for monorepos, and an improved CLI and API. A rule takes under a dozen lines with inline VALID/INVALID test cases, and passing a replacement CST node to report() supplies an autofix. Applied broadly, `fixit fix` can also drive codemods across a large codebase while the rule stays in place to catch new occurrences.

  • Zed Has Rainbow Brackets

    Zed mediumAdept

    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. Chunks may occasionally be off by one color at boundaries, a tradeoff accepted to avoid maintaining global bracket state. Results are cached on the buffer rather than the ephemeral editor, versioned with clock::Global, invalidated eagerly on edits and re-queried lazily only for visible ranges. Upstream tree-sitter changes that limit query search ranges keep performance acceptable, and a visual test notation annotates each bracket with its color index.

  • How we use Vale to improve our documentation editing process

    Datadog Engineering mediumAdept

    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. The rules run in a GitHub Action on every docs pull request and locally in VS Code, flagging long sentences, jargon, Latin abbreviations, temporal words and missing Oxford commas before a writer reviews. Rules are written in Vale's YAML format using existence and substitution checks with regex tokens, and Hugo shortcodes are excluded via regex. The repo now serves as the company-wide single source of truth for style, and other teams contribute their own terminology to it.

The quest for software engineering knowledge.

Look:
Layout: