Skip to main content

Ruff 0.17.6

Release Date: November 19, 2026

Ruff 0.17.6 was released on November 19, 2026. It is a maintenance release: one preview fix, five correctness fixes across the linter, two rule behavior changes, three performance items, and a toolchain bump to Rust 1.100 with a minimum supported Rust version of 1.98. This document summarizes the changes as published in the official release notes.

Overview

No new stable rules land in this release, and no user-facing configuration schema changes. Projects pinned to 0.17.x can upgrade without editing ruff.toml or pyproject.toml. The fixes concentrate on false positives and false negatives in the pyflakes, pylint, flake8-bugbear, and Ruff-specific rule families, plus a syntax-correctness fix in a fixer that previously emitted invalid Python.

Preview Features

  • flake8-type-checking, TC010: a fix is now available for runtime-string-union (PR #15635). Autofix support for this rule remains behind preview.

Bug Fixes

  • B033, RUF068: correct handling of parenthesized duplicate items (PR #30493).
  • F823: a false negative no longer occurs when a name is assigned more than once (PR #30524). Code that previously passed clean can now report an undefined-local error, so expect a small number of new diagnostics after upgrading.
  • PLR1733, PLR1736: false positives are avoided when a collection is modified inside a loop (PR #30466).
  • RUF072: the useless-finally fix no longer produces a syntax error for inline try bodies (PR #30349).
  • Relative imports from .__future__ are now treated as ordinary imports rather than module-future imports (PR #30260).

Rule Changes

  • SIM208: fixes avoid wrapping expressions in redundant bool calls (PR #30457).
  • F841: __traceback_hide__ is ignored by the unused-variable rule, matching its role as a debugging marker (PR #29600).

Performance

  • In-memory notebooks are decoded directly from their source string, removing an intermediate step in notebook linting (PR #30385).
  • Exact qualified-name checks short-circuit, cutting work in the resolution path (PR #30058).
  • JSON diagnostics stream to the output writer instead of being assembled first, which reduces peak memory on large runs (PR #30384).

Documentation

  • The multiline string example in the Known Deviations from Black page is corrected (PR #30447).
  • Individual rule documentation pages now display their category (PR #30503).

Toolchain and Upgrade Notes

The Rust toolchain is updated to 1.100 and the MSRV to 1.98 (PR #30416), which matters only if you build Ruff from source. Prebuilt wheels and binaries are published for macOS (Apple Silicon and Intel), Windows (x64, x86, ARM64), and Linux (x86_64, aarch64, i686, ppc64le, s390x, riscv64gc).

Upgrade with uv tool upgrade ruff, pip install --upgrade ruff, or your platform package manager. The 0.17.6 release carried twelve contributors, including @pseudo-usama, @G26karthik, @MichaReiser, @apathydevil, @Shivansh-S17, @charliermarsh, @ntBre, @anujdas, @chammika, @imryanthedev, and @Daverball.

Other Versions

We use cookies for ads and analytics.