Immutable
release. Only release title and notes can be modified.
Release Notes
Released on 2026-09-03.
Preview features
- Move
pytest-fixture-autouseto therestrictioncategory (#28219) - [
flake8-pytest-style] Add an autofix forPT020(#27993) - [
flake8-tidy-imports] Prevent fix loop betweenTID254andTID255(#28262) - [
isort] Exclude pragma comments from line length calculation (I001) (#27313)
Bug fixes
- Validate unary expressions when parsing (#28233)
- [
flake8-async,pylint] Recognizebuiltins.open(ASYNC230,PLW1514) (#28021) - [
flake8-bugbear] Fix panic onmatchsubjects (B031) (#27781) - [
flake8-datetimez] Rejecttzinfo=Nonefordatetimebounds (DTZ901) (#28022) - [
flake8-pytest-style] Avoid duplicatePT017diagnostics (#27918) - [
ruff] Removelint.externalhint for Ruff-specific suppressions (RUF102) (#27923)
Rule changes
- [
flake8-use-pathlib] Add display-only fix foros.listdir(PTH208) (#28027)
Documentation
- Add another example and glob reference for
lint.per-file-ignores(#28106) - Add duplicate work guidance (#28229)
- [
flake8-async] Document thread offloading (ASYNC240) (#28008) - [
pyupgrade] Clarify defaultencodingargument handling (UP012) (#27315)
Other changes
- Allow unary plus in match patterns on Python 3.15 (#28231)
Contributors
- @flying-sheep
- @pikammmmm
- @fly1d
- @waterWang
- @Pierre-Sassoulas
- @ntBre
- @jelle-openai
- @ericbuehl
- @tjkuson
- @AbhinavMir
- @Whning0513
- @chirizxc
Install ruff 0.16.6
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ruff/releases/download/0.16.6/ruff-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/ruff/releases/download/0.16.6/ruff-installer.ps1 | iex"Download ruff 0.16.6
Verifying GitHub Artifact Attestations
The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:
gh attestation verify <file-path of downloaded artifact> --repo astral-sh/ruffYou can also download the attestation from GitHub and verify against that directly:
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation>