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.16.0

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.

Related posts

  • 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.

  • 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.

  • 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.

  • 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.

  • Bun v1.4.4

    Bun mediumAdept

    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. It checks Prettier's repo in 60 ms vs 17 s, runs 3-6x faster than oxfmt, and matches Prettier's own test suite byte-for-byte on 99.1% of cases. The release also makes `bun check` 1.4-7.8x faster (MUI docs memory drops from 11.2 GB to 1.3 GB) and up to 15x faster in multi-project builds via shared declaration and resolution caches. `bun install` gains Yarn Berry lockfile migration, exponential-backoff retries with jitter, and parallel hoisted linking that is up to 3.2x faster from a warm cache.

The quest for software engineering knowledge.

Look:
Layout: