Update dependency ruff to ~=0.16.7 #99

Open
Renovate wants to merge 1 commit from renovate/ruff-0.x into main
Collaborator

This PR contains the following updates:

Package Change Age Confidence
ruff (source, changelog) ~=0.15.3~=0.16.7 age confidence

Release Notes

astral-sh/ruff (ruff)

v0.16.7

Compare Source

Released on 2026-09-10.

Preview features
  • [ruff] Add rule for default values on method receivers (RUF077) (#​26700)
  • [ruff] Recognize re.prefixmatch (RUF039, RUF055) (#​28311)
Bug fixes
  • Alternate nested quotes inside format spec interpolations (#​28259)
  • [flake8-implicit-str-concat] Mark fix unsafe when it creates a docstring (ISC003) (#​27981)
  • [flake8-tidy-imports] Skip fixes for multi-member imports (TID254) (#​26584)
  • [pylint] Gate ImportCycleError on Python 3.15 (PLW0133) (#​28310)
Rule changes
  • Correct D211 and D203 rule conflict diagnostic (#​28444)
  • Recognize slice and frozendict generics (#​28477)
  • Stop defining __cached__ for Python 3.15 (#​28476)
  • [pyupgrade] Stop recommending removed typing.no_type_check_decorator (UP035) (#​28475)
Performance
  • Reuse parser name lookups when interning (#​28399)
  • Speed up inherited configuration resolution (#​28299)
Documentation
  • Fix line-length path in --config example (#​28392)
  • Remove the "Who’s Using Ruff?" list (#​28455)
Other changes
  • Embed archive checksums in the shell installer (#​28281)
Contributors

v0.16.6

Compare Source

Released on 2026-09-03.

Preview features
  • Move pytest-fixture-autouse to the restriction category (#​28219)
  • [flake8-pytest-style] Add an autofix for PT020 (#​27993)
  • [flake8-tidy-imports] Prevent fix loop between TID254 and TID255 (#​28262)
  • [isort] Exclude pragma comments from line length calculation (I001) (#​27313)
Bug fixes
  • Validate unary expressions when parsing (#​28233)
  • [flake8-async, pylint] Recognize builtins.open (ASYNC230, PLW1514) (#​28021)
  • [flake8-bugbear] Fix panic on match subjects (B031) (#​27781)
  • [flake8-datetimez] Reject tzinfo=None for datetime bounds (DTZ901) (#​28022)
  • [flake8-pytest-style] Avoid duplicate PT017 diagnostics (#​27918)
  • [ruff] Remove lint.external hint for Ruff-specific suppressions (RUF102) (#​27923)
Rule changes
  • [flake8-use-pathlib] Add display-only fix for os.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 default encoding argument handling (UP012) (#​27315)
Other changes
  • Allow unary plus in match patterns on Python 3.15 (#​28231)
Contributors

v0.16.5

Compare Source

Released on 2026-08-27.

Preview features
  • Allow rules without codes (#​28049)
  • Introduce category selectors (#​27666)
  • Update preview default rules and categories (#​27877)
Bug fixes
  • [flake8-async] Detect blocking generic HTTP requests (ASYNC210) (#​28024)
  • [flake8-datetimez] Allow timezone-safe strptime chains (DTZ007) (#​28023)
  • [flake8-simplify] Respect side effects in lambda defaults (SIM401) (#​28000)
Server
  • Fix duplicated "of" in ClientOptions doc comment (#​27978)
Documentation
  • Document rule acceptance guidelines (#​27910)
  • Document the new category selectors (#​27906)
Contributors

v0.16.4

Compare Source

Released on 2026-08-20.

Preview features
  • [flake8-use-pathlib] Add autofix for PTH116 (#​26460)
  • [refurb] Restrict delete-full-slice to lists (FURB131) (#​27711)
  • [refurb] Skip FURB101 and FURB103 when the open argument is a file descriptor (#​27643)
Bug fixes
  • Fix InvalidInstruction on Windows CPUs that do not support POPCNT (#​27803)
  • [pyflakes] Emit semantic syntax errors in string type definitions as F722 (#​27835)
  • [pylint] Allow os._exit imports in import-private-name (PLC2701) (#​27738)
Rule changes
  • [syntax-errors] Align mixed t-string/bytes error message with CPython 3.14 (#​27766)
  • [ruff] Add ctypes.LittleEndianStructure and related types to existing exception (RUF012) (#​27753)
  • [syntax-errors] Detect duplicate keyword arguments (#​17804)
  • [syntax-errors] Detect parameters declared nonlocal (#​27628)
Server
  • Offer display-only fixes and mark safe fixes preferred (#​27807)
  • Support pull diagnostics for notebook cells (#​27779)
Documentation
  • Add default indicator to rules table (#​27724)
  • Fix broken link to Python docs (#​27757)
Other changes
  • Fix s390x stacker assembly in release builds (#​27776)
  • Guarantee minimum stack size when parsing a module, standalone expression, and suites (#​25464)
  • Reduce configuration deserialization code size (#​27924)
  • Check packed AST index bounds (#​27849)
Contributors

v0.16.3

Compare Source

Released on 2026-08-13.

Preview features
  • [pylint] Fix false negatives on negative numbers (PLR6104) (#​27251)
  • [pyupgrade] Add rule to replace while 1 with while True (UP048) (#​27190)
Bug fixes
  • [flake8-bandit] Also check keyword arguments (S602, S603, S607, S609) (#​27687)
  • [pylint] Allow continue in finally on Python 3.8 (#​27626)
  • [pylint] Fix PLE1307 false positive with bools (#​27651)
  • [pylint] Fix false positives and negatives with %b format character (PLE1300, PLE1307) (#​27560)
  • [pylint] Improve handling of concatenated strings (PLE1300) (#​27659)
Rule changes
  • [numpy] Make np.chararray autofix backwards-compatible (NPY201) (#​27527)
Performance
  • Enable PGO for Linux x86-64 Ruff releases (#​27570)
  • Enable PGO for Linux ARM64 Ruff releases (#​27574)
  • Enable PGO for Windows x86-64 Ruff releases (#​27573)
  • Enable PGO for macOS ARM64 Ruff releases (#​27572)
  • Reduce Expr size to 64 bytes (#​27591)
CLI
  • Hyperlink rule codes in ruff check --statistics output (#​27646)
Documentation
  • [ruff] Also suggest asyncio.TaskGroup (RUF006) (#​27461)
Other changes
Contributors

v0.16.2

Compare Source

Released on 2026-08-06.

Bug fixes
  • [flake8-pyi] Avoid false positives on singledispatch functions (PYI041) (#​27335)
Server
  • Register formatting capabilities dynamically to exclude TOML files (#​27332)
Contributors

v0.16.1

Compare Source

Released on 2026-07-30.

Preview features
  • Add an option to opt out of human-readable names (#​27160)
  • [flake8-pytest-style] Make fixes safe by default and unsafe only when comments are present (PT018) (#​27201)
  • [pyupgrade] Skip fix when a defaulted TypeVar precedes a non-defaulted one (UP040, UP046, UP047) (#​27133)
  • [ruff] Fix false positive with unpacked arguments (RUF065) (#​26959)
Bug fixes
  • Bump gen-lsp-types to gracefully handle unknown enumeration values in LSP messages (#​27230)
  • [flake8-bugbear] Mark range as immutable (B008) (#​27247)
  • [flake8-comprehensions] NFKC-normalize keyword names in C408 fix (#​26813)
  • [flake8-return] Fix false positive when variable is read in finally clause (RET504) (#​25441)
  • [pydocstyle] Skip section detection inside RST directive bodies (D214, D405, D413) (#​23635)
  • [refurb] Parenthesize yield arguments in the FURB192 fix (#​27192)
Rule changes
  • [flake8-pytest-style] Mark PT022 fixes as unsafe (#​26440)
  • [refurb] Mark fixes that remove unknown separators as unsafe (FURB105) (#​27200)
Server
  • Fix indexing of excluded nested Ruff workspaces (#​27303)
  • Lint TOML files in the LSP (#​26862)
Documentation
  • Cover pycon Markdown formatting (#​27153)
  • [flake8-bandit] Document TYPE_CHECKING exception (S101) (#​27004)
  • [flake8-import-conventions] Document that extend-aliases can override default aliases (#​27191)
  • [pylint] Add missing fix safety gotchas for non-augmented-assignment (PLR6104) (#​27250)
Other changes
  • Reduce syntax error noise by swallowing dedents like indents (#​27170)
  • Vendor latest annotate-snippets (#​27033)
Contributors

v0.16.0

Compare Source

Released on 2026-07-23.

Check out the blog post for a migration
guide and overview of the changes!

Breaking changes
  • Ruff now enables a much larger set of rules by default (413, up from 59). See the blog post for
    more details and the new Default Rules page for a
    full listing of the enabled rules. Note that this is primarily an expansion, but 18 of the more
    opinionated pycodestyle (E) and pyflakes (F) rules have been removed from the default set:
    E401, E402, E701, E702, E703, E711, E712, E713, E714, E721, E731, E741,
    E742, E743, F403, F405, F406, and F722.

  • Ruff can now format Python code blocks in Markdown files and will do this by default. See the
    documentation for more details.

  • Ruff now supports ruff: ignore comments at the ends of lines, like noqa comments, or on the line preceding a diagnostic. For example, these both suppress an unused-import (F401) diagnostic:

    import math  # ruff: ignore[F401]
    
    # ruff: ignore[F401]
    import os
    
  • Fixes are now shown in check and format --check output:

    ❯ ruff format --check .
    unformatted: File would be reformatted
     --> try.md:1:1
      |
    1 | ```python
      - import   math
    2 + import math
    3 | ```
      |
    
    1 file would be reformatted
    

    This example also shows off the Markdown formatting.

  • format --check now supports the same output formats as the linter, including the github and
    gitlab outputs for rendering annotations in CI:

    ❯ ruff format --check --output-format github .
    ::error title=ruff (unformatted),file=try.md,line=2,col=8,endLine=2,endColumn=10::try.md:2:8: unformatted: File would be reformatted
    

    See the CLI help or documentation for the
    full list of supported formats.

  • The filename, location, end_location, fix.edits[].location, and fix.edits[].end_location
    fields in the JSON output format may now be null rather than defaulting to the empty string and
    row 1, column 1, respectively.

Stabilization

The following rules have been stabilized and are no longer in preview:

The following behaviors have been stabilized:

Preview features
  • [pyupgrade] Fix false positive with TypeVar default before Python 3.13 (UP040) (#​26888)
Bug fixes
  • [ruff] Fix missing check on unrecognized early bound (RUF016) (#​26986)
Rule changes
  • Insert a space after the colon in Ruff suppression comments (#​27123)
Performance
  • [pyupgrade] Speed up unnecessary-future-import (UP010) (#​27047)
Documentation
  • [ruff] Add missing period in "Why is this bad?" section (RUF200) (#​26930)
  • [flake8-simplify] Clarify os.environ behavior on Windows (SIM112) (#​26972)
  • [pydocstyle] Document fix safety (D400) (#​26971)
Contributors

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [ruff](https://docs.astral.sh/ruff) ([source](https://github.com/astral-sh/ruff), [changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)) | `~=0.15.3` → `~=0.16.7` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/ruff/0.16.7?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ruff/0.15.22/0.16.7?slim=true) | --- ### Release Notes <details> <summary>astral-sh/ruff (ruff)</summary> ### [`v0.16.7`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0167) [Compare Source](https://github.com/astral-sh/ruff/compare/0.16.6...0.16.7) Released on 2026-09-10. ##### Preview features - \[`ruff`] Add rule for default values on method receivers (`RUF077`) ([#&#8203;26700](https://github.com/astral-sh/ruff/pull/26700)) - \[`ruff`] Recognize `re.prefixmatch` (`RUF039`, `RUF055`) ([#&#8203;28311](https://github.com/astral-sh/ruff/pull/28311)) ##### Bug fixes - Alternate nested quotes inside format spec interpolations ([#&#8203;28259](https://github.com/astral-sh/ruff/pull/28259)) - \[`flake8-implicit-str-concat`] Mark fix unsafe when it creates a docstring (`ISC003`) ([#&#8203;27981](https://github.com/astral-sh/ruff/pull/27981)) - \[`flake8-tidy-imports`] Skip fixes for multi-member imports (`TID254`) ([#&#8203;26584](https://github.com/astral-sh/ruff/pull/26584)) - \[`pylint`] Gate `ImportCycleError` on Python 3.15 (`PLW0133`) ([#&#8203;28310](https://github.com/astral-sh/ruff/pull/28310)) ##### Rule changes - Correct `D211` and `D203` rule conflict diagnostic ([#&#8203;28444](https://github.com/astral-sh/ruff/pull/28444)) - Recognize `slice` and `frozendict` generics ([#&#8203;28477](https://github.com/astral-sh/ruff/pull/28477)) - Stop defining `__cached__` for Python 3.15 ([#&#8203;28476](https://github.com/astral-sh/ruff/pull/28476)) - \[`pyupgrade`] Stop recommending removed `typing.no_type_check_decorator` (`UP035`) ([#&#8203;28475](https://github.com/astral-sh/ruff/pull/28475)) ##### Performance - Reuse parser name lookups when interning ([#&#8203;28399](https://github.com/astral-sh/ruff/pull/28399)) - Speed up inherited configuration resolution ([#&#8203;28299](https://github.com/astral-sh/ruff/pull/28299)) ##### Documentation - Fix `line-length` path in `--config` example ([#&#8203;28392](https://github.com/astral-sh/ruff/pull/28392)) - Remove the "Who’s Using Ruff?" list ([#&#8203;28455](https://github.com/astral-sh/ruff/pull/28455)) ##### Other changes - Embed archive checksums in the shell installer ([#&#8203;28281](https://github.com/astral-sh/ruff/pull/28281)) ##### Contributors - [@&#8203;The-Compiler](https://github.com/The-Compiler) - [@&#8203;mdiniz97](https://github.com/mdiniz97) - [@&#8203;zsol](https://github.com/zsol) - [@&#8203;gorewilliams](https://github.com/gorewilliams) - [@&#8203;RafaelJohn9](https://github.com/RafaelJohn9) - [@&#8203;qatcod](https://github.com/qatcod) - [@&#8203;zanieb](https://github.com/zanieb) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;charliermarsh](https://github.com/charliermarsh) - [@&#8203;nightt5879](https://github.com/nightt5879) - [@&#8203;jonathandung](https://github.com/jonathandung) - [@&#8203;jogo-openai](https://github.com/jogo-openai) ### [`v0.16.6`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0166) [Compare Source](https://github.com/astral-sh/ruff/compare/0.16.5...0.16.6) Released on 2026-09-03. ##### Preview features - Move `pytest-fixture-autouse` to the `restriction` category ([#&#8203;28219](https://github.com/astral-sh/ruff/pull/28219)) - \[`flake8-pytest-style`] Add an autofix for `PT020` ([#&#8203;27993](https://github.com/astral-sh/ruff/pull/27993)) - \[`flake8-tidy-imports`] Prevent fix loop between `TID254` and `TID255` ([#&#8203;28262](https://github.com/astral-sh/ruff/pull/28262)) - \[`isort`] Exclude pragma comments from line length calculation (`I001`) ([#&#8203;27313](https://github.com/astral-sh/ruff/pull/27313)) ##### Bug fixes - Validate unary expressions when parsing ([#&#8203;28233](https://github.com/astral-sh/ruff/pull/28233)) - \[`flake8-async`, `pylint`] Recognize `builtins.open` (`ASYNC230`, `PLW1514`) ([#&#8203;28021](https://github.com/astral-sh/ruff/pull/28021)) - \[`flake8-bugbear`] Fix panic on `match` subjects (`B031`) ([#&#8203;27781](https://github.com/astral-sh/ruff/pull/27781)) - \[`flake8-datetimez`] Reject `tzinfo=None` for `datetime` bounds (`DTZ901`) ([#&#8203;28022](https://github.com/astral-sh/ruff/pull/28022)) - \[`flake8-pytest-style`] Avoid duplicate `PT017` diagnostics ([#&#8203;27918](https://github.com/astral-sh/ruff/pull/27918)) - \[`ruff`] Remove `lint.external` hint for Ruff-specific suppressions (`RUF102`) ([#&#8203;27923](https://github.com/astral-sh/ruff/pull/27923)) ##### Rule changes - \[`flake8-use-pathlib`] Add display-only fix for `os.listdir` (`PTH208`) ([#&#8203;28027](https://github.com/astral-sh/ruff/pull/28027)) ##### Documentation - Add another example and glob reference for `lint.per-file-ignores` ([#&#8203;28106](https://github.com/astral-sh/ruff/pull/28106)) - Add duplicate work guidance ([#&#8203;28229](https://github.com/astral-sh/ruff/pull/28229)) - \[`flake8-async`] Document thread offloading (`ASYNC240`) ([#&#8203;28008](https://github.com/astral-sh/ruff/pull/28008)) - \[`pyupgrade`] Clarify default `encoding` argument handling (`UP012`) ([#&#8203;27315](https://github.com/astral-sh/ruff/pull/27315)) ##### Other changes - Allow unary plus in match patterns on Python 3.15 ([#&#8203;28231](https://github.com/astral-sh/ruff/pull/28231)) ##### Contributors - [@&#8203;flying-sheep](https://github.com/flying-sheep) - [@&#8203;pikammmmm](https://github.com/pikammmmm) - [@&#8203;fly1d](https://github.com/fly1d) - [@&#8203;waterWang](https://github.com/waterWang) - [@&#8203;Pierre-Sassoulas](https://github.com/Pierre-Sassoulas) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;jelle-openai](https://github.com/jelle-openai) - [@&#8203;ericbuehl](https://github.com/ericbuehl) - [@&#8203;tjkuson](https://github.com/tjkuson) - [@&#8203;AbhinavMir](https://github.com/AbhinavMir) - [@&#8203;Whning0513](https://github.com/Whning0513) - [@&#8203;chirizxc](https://github.com/chirizxc) ### [`v0.16.5`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0165) [Compare Source](https://github.com/astral-sh/ruff/compare/0.16.4...0.16.5) Released on 2026-08-27. ##### Preview features - Allow rules without codes ([#&#8203;28049](https://github.com/astral-sh/ruff/pull/28049)) - Introduce category selectors ([#&#8203;27666](https://github.com/astral-sh/ruff/pull/27666)) - Update preview default rules and categories ([#&#8203;27877](https://github.com/astral-sh/ruff/pull/27877)) ##### Bug fixes - \[`flake8-async`] Detect blocking generic HTTP requests (`ASYNC210`) ([#&#8203;28024](https://github.com/astral-sh/ruff/pull/28024)) - \[`flake8-datetimez`] Allow timezone-safe `strptime` chains (`DTZ007`) ([#&#8203;28023](https://github.com/astral-sh/ruff/pull/28023)) - \[`flake8-simplify`] Respect side effects in `lambda` defaults (`SIM401`) ([#&#8203;28000](https://github.com/astral-sh/ruff/pull/28000)) ##### Server - Fix duplicated "of" in `ClientOptions` doc comment ([#&#8203;27978](https://github.com/astral-sh/ruff/pull/27978)) ##### Documentation - Document rule acceptance guidelines ([#&#8203;27910](https://github.com/astral-sh/ruff/pull/27910)) - Document the new category selectors ([#&#8203;27906](https://github.com/astral-sh/ruff/pull/27906)) ##### Contributors - [@&#8203;AlexWaygood](https://github.com/AlexWaygood) - [@&#8203;sharkdp](https://github.com/sharkdp) - [@&#8203;jelle-openai](https://github.com/jelle-openai) - [@&#8203;charliermarsh](https://github.com/charliermarsh) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;aarushkandukoori](https://github.com/aarushkandukoori) ### [`v0.16.4`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0164) [Compare Source](https://github.com/astral-sh/ruff/compare/0.16.3...0.16.4) Released on 2026-08-20. ##### Preview features - \[`flake8-use-pathlib`] Add autofix for `PTH116` ([#&#8203;26460](https://github.com/astral-sh/ruff/pull/26460)) - \[`refurb`] Restrict `delete-full-slice` to lists (`FURB131`) ([#&#8203;27711](https://github.com/astral-sh/ruff/pull/27711)) - \[`refurb`] Skip `FURB101` and `FURB103` when the `open` argument is a file descriptor ([#&#8203;27643](https://github.com/astral-sh/ruff/pull/27643)) ##### Bug fixes - Fix `InvalidInstruction` on Windows CPUs that do not support `POPCNT` ([#&#8203;27803](https://github.com/astral-sh/ruff/pull/27803)) - \[`pyflakes`] Emit semantic syntax errors in string type definitions as `F722` ([#&#8203;27835](https://github.com/astral-sh/ruff/pull/27835)) - \[`pylint`] Allow `os._exit` imports in `import-private-name` (`PLC2701`) ([#&#8203;27738](https://github.com/astral-sh/ruff/pull/27738)) ##### Rule changes - \[syntax-errors] Align mixed t-string/bytes error message with CPython 3.14 ([#&#8203;27766](https://github.com/astral-sh/ruff/pull/27766)) - \[`ruff`] Add `ctypes.LittleEndianStructure` and related types to existing exception (`RUF012`) ([#&#8203;27753](https://github.com/astral-sh/ruff/pull/27753)) - \[syntax-errors] Detect duplicate keyword arguments ([#&#8203;17804](https://github.com/astral-sh/ruff/pull/17804)) - \[syntax-errors] Detect parameters declared `nonlocal` ([#&#8203;27628](https://github.com/astral-sh/ruff/pull/27628)) ##### Server - Offer display-only fixes and mark safe fixes preferred ([#&#8203;27807](https://github.com/astral-sh/ruff/pull/27807)) - Support pull diagnostics for notebook cells ([#&#8203;27779](https://github.com/astral-sh/ruff/pull/27779)) ##### Documentation - Add default indicator to rules table ([#&#8203;27724](https://github.com/astral-sh/ruff/pull/27724)) - Fix broken link to Python docs ([#&#8203;27757](https://github.com/astral-sh/ruff/pull/27757)) ##### Other changes - Fix s390x stacker assembly in release builds ([#&#8203;27776](https://github.com/astral-sh/ruff/pull/27776)) - Guarantee minimum stack size when parsing a module, standalone expression, and suites ([#&#8203;25464](https://github.com/astral-sh/ruff/pull/25464)) - Reduce configuration deserialization code size ([#&#8203;27924](https://github.com/astral-sh/ruff/pull/27924)) - Check packed AST index bounds ([#&#8203;27849](https://github.com/astral-sh/ruff/pull/27849)) ##### Contributors - [@&#8203;AbhinavMir](https://github.com/AbhinavMir) - [@&#8203;eduardorittner](https://github.com/eduardorittner) - [@&#8203;royb3](https://github.com/royb3) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;carljm](https://github.com/carljm) - [@&#8203;rosstitmarsh](https://github.com/rosstitmarsh) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;zaniebot](https://github.com/zaniebot) - [@&#8203;ewdurbin](https://github.com/ewdurbin) - [@&#8203;woodruffw](https://github.com/woodruffw) - [@&#8203;Sacrimento](https://github.com/Sacrimento) - [@&#8203;lakshayxi](https://github.com/lakshayxi) - [@&#8203;WhiteFox0-0](https://github.com/WhiteFox0-0) - [@&#8203;baltasarblanco](https://github.com/baltasarblanco) ### [`v0.16.3`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0163) [Compare Source](https://github.com/astral-sh/ruff/compare/0.16.2...0.16.3) Released on 2026-08-13. ##### Preview features - \[`pylint`] Fix false negatives on negative numbers (`PLR6104`) ([#&#8203;27251](https://github.com/astral-sh/ruff/pull/27251)) - \[`pyupgrade`] Add rule to replace `while 1` with `while True` (`UP048`) ([#&#8203;27190](https://github.com/astral-sh/ruff/pull/27190)) ##### Bug fixes - \[`flake8-bandit`] Also check keyword arguments (`S602`, `S603`, `S607`, `S609`) ([#&#8203;27687](https://github.com/astral-sh/ruff/pull/27687)) - \[`pylint`] Allow `continue` in `finally` on Python 3.8 ([#&#8203;27626](https://github.com/astral-sh/ruff/pull/27626)) - \[`pylint`] Fix `PLE1307` false positive with bools ([#&#8203;27651](https://github.com/astral-sh/ruff/pull/27651)) - \[`pylint`] Fix false positives and negatives with `%b` format character (`PLE1300`, `PLE1307`) ([#&#8203;27560](https://github.com/astral-sh/ruff/pull/27560)) - \[`pylint`] Improve handling of concatenated strings (`PLE1300`) ([#&#8203;27659](https://github.com/astral-sh/ruff/pull/27659)) ##### Rule changes - \[`numpy`] Make `np.chararray` autofix backwards-compatible (`NPY201`) ([#&#8203;27527](https://github.com/astral-sh/ruff/pull/27527)) ##### Performance - Enable PGO for Linux x86-64 Ruff releases ([#&#8203;27570](https://github.com/astral-sh/ruff/pull/27570)) - Enable PGO for Linux ARM64 Ruff releases ([#&#8203;27574](https://github.com/astral-sh/ruff/pull/27574)) - Enable PGO for Windows x86-64 Ruff releases ([#&#8203;27573](https://github.com/astral-sh/ruff/pull/27573)) - Enable PGO for macOS ARM64 Ruff releases ([#&#8203;27572](https://github.com/astral-sh/ruff/pull/27572)) - Reduce `Expr` size to 64 bytes ([#&#8203;27591](https://github.com/astral-sh/ruff/pull/27591)) ##### CLI - Hyperlink rule codes in `ruff check --statistics` output ([#&#8203;27646](https://github.com/astral-sh/ruff/pull/27646)) ##### Documentation - \[`ruff`] Also suggest `asyncio.TaskGroup` (`RUF006`) ([#&#8203;27461](https://github.com/astral-sh/ruff/pull/27461)) ##### Other changes - Use mimalloc v3 ([#&#8203;27586](https://github.com/astral-sh/ruff/pull/27586)) ##### Contributors - [@&#8203;Andrej730](https://github.com/Andrej730) - [@&#8203;alonfaraj](https://github.com/alonfaraj) - [@&#8203;romero-deshaw](https://github.com/romero-deshaw) - [@&#8203;Avasam](https://github.com/Avasam) - [@&#8203;tjkuson](https://github.com/tjkuson) - [@&#8203;charliermarsh](https://github.com/charliermarsh) - [@&#8203;chirizxc](https://github.com/chirizxc) - [@&#8203;saberoueslati](https://github.com/saberoueslati) - [@&#8203;MichaReiser](https://github.com/MichaReiser) ### [`v0.16.2`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0162) [Compare Source](https://github.com/astral-sh/ruff/compare/0.16.1...0.16.2) Released on 2026-08-06. ##### Bug fixes - \[`flake8-pyi`] Avoid false positives on `singledispatch` functions (`PYI041`) ([#&#8203;27335](https://github.com/astral-sh/ruff/pull/27335)) ##### Server - Register formatting capabilities dynamically to exclude TOML files ([#&#8203;27332](https://github.com/astral-sh/ruff/pull/27332)) ##### Contributors - [@&#8203;MeGaGiGaGon](https://github.com/MeGaGiGaGon) - [@&#8203;charliermarsh](https://github.com/charliermarsh) - [@&#8203;epage](https://github.com/epage) - [@&#8203;sharkdp](https://github.com/sharkdp) - [@&#8203;ntBre](https://github.com/ntBre) ### [`v0.16.1`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0161) [Compare Source](https://github.com/astral-sh/ruff/compare/0.16.0...0.16.1) Released on 2026-07-30. ##### Preview features - Add an option to opt out of human-readable names ([#&#8203;27160](https://github.com/astral-sh/ruff/pull/27160)) - \[`flake8-pytest-style`] Make fixes safe by default and unsafe only when comments are present (`PT018`) ([#&#8203;27201](https://github.com/astral-sh/ruff/pull/27201)) - \[`pyupgrade`] Skip fix when a defaulted `TypeVar` precedes a non-defaulted one (`UP040`, `UP046`, `UP047`) ([#&#8203;27133](https://github.com/astral-sh/ruff/pull/27133)) - \[`ruff`] Fix false positive with unpacked arguments (`RUF065`) ([#&#8203;26959](https://github.com/astral-sh/ruff/pull/26959)) ##### Bug fixes - Bump `gen-lsp-types` to gracefully handle unknown enumeration values in LSP messages ([#&#8203;27230](https://github.com/astral-sh/ruff/pull/27230)) - \[`flake8-bugbear`] Mark `range` as immutable (`B008`) ([#&#8203;27247](https://github.com/astral-sh/ruff/pull/27247)) - \[`flake8-comprehensions`] NFKC-normalize keyword names in `C408` fix ([#&#8203;26813](https://github.com/astral-sh/ruff/pull/26813)) - \[`flake8-return`] Fix false positive when variable is read in `finally` clause (`RET504`) ([#&#8203;25441](https://github.com/astral-sh/ruff/pull/25441)) - \[`pydocstyle`] Skip section detection inside RST directive bodies (`D214`, `D405`, `D413`) ([#&#8203;23635](https://github.com/astral-sh/ruff/pull/23635)) - \[`refurb`] Parenthesize `yield` arguments in the `FURB192` fix ([#&#8203;27192](https://github.com/astral-sh/ruff/pull/27192)) ##### Rule changes - \[`flake8-pytest-style`] Mark `PT022` fixes as unsafe ([#&#8203;26440](https://github.com/astral-sh/ruff/pull/26440)) - \[`refurb`] Mark fixes that remove unknown separators as unsafe (`FURB105`) ([#&#8203;27200](https://github.com/astral-sh/ruff/pull/27200)) ##### Server - Fix indexing of excluded nested Ruff workspaces ([#&#8203;27303](https://github.com/astral-sh/ruff/pull/27303)) - Lint TOML files in the LSP ([#&#8203;26862](https://github.com/astral-sh/ruff/pull/26862)) ##### Documentation - Cover `pycon` Markdown formatting ([#&#8203;27153](https://github.com/astral-sh/ruff/pull/27153)) - \[`flake8-bandit`] Document `TYPE_CHECKING` exception (`S101`) ([#&#8203;27004](https://github.com/astral-sh/ruff/pull/27004)) - \[`flake8-import-conventions`] Document that `extend-aliases` can override default aliases ([#&#8203;27191](https://github.com/astral-sh/ruff/pull/27191)) - \[`pylint`] Add missing fix safety gotchas for `non-augmented-assignment` (`PLR6104`) ([#&#8203;27250](https://github.com/astral-sh/ruff/pull/27250)) ##### Other changes - Reduce syntax error noise by swallowing dedents like indents ([#&#8203;27170](https://github.com/astral-sh/ruff/pull/27170)) - Vendor latest annotate-snippets ([#&#8203;27033](https://github.com/astral-sh/ruff/pull/27033)) ##### Contributors - [@&#8203;bxff](https://github.com/bxff) - [@&#8203;anishgirianish](https://github.com/anishgirianish) - [@&#8203;Avasam](https://github.com/Avasam) - [@&#8203;epage](https://github.com/epage) - [@&#8203;LHMQ878](https://github.com/LHMQ878) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;HarshalPatel1972](https://github.com/HarshalPatel1972) - [@&#8203;mjpieters](https://github.com/mjpieters) - [@&#8203;joshuavetos](https://github.com/joshuavetos) - [@&#8203;jesco-absolute](https://github.com/jesco-absolut) - [@&#8203;vidigoat](https://github.com/vidigoat) - [@&#8203;baltasarblanco](https://github.com/baltasarblanco) - [@&#8203;ribru17](https://github.com/ribru17) - [@&#8203;oh-summy](https://github.com/oh-summy) - [@&#8203;Jayashanker-Padishala](https://github.com/Jayashanker-Padishala) ### [`v0.16.0`](https://github.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#0160) [Compare Source](https://github.com/astral-sh/ruff/compare/0.15.22...0.16.0) Released on 2026-07-23. Check out the [blog post](https://astral.sh/blog/ruff-v0.16.0) for a migration guide and overview of the changes! ##### Breaking changes - Ruff now enables a much larger set of rules by default (413, up from 59). See the blog post for more details and the new [Default Rules](https://docs.astral.sh/ruff/default-rules/) page for a full listing of the enabled rules. Note that this is primarily an expansion, but 18 of the more opinionated pycodestyle (`E`) and pyflakes (`F`) rules have been removed from the default set: `E401`, `E402`, `E701`, `E702`, `E703`, `E711`, `E712`, `E713`, `E714`, `E721`, `E731`, `E741`, `E742`, `E743`, `F403`, `F405`, `F406`, and `F722`. - Ruff can now format Python code blocks in Markdown files and will do this by default. See the [documentation](https://docs.astral.sh/ruff/formatter/#markdown-code-formatting) for more details. - Ruff now supports `ruff: ignore` comments at the ends of lines, like `noqa` comments, or on the line preceding a diagnostic. For example, these both suppress an [`unused-import`](https://docs.astral.sh/ruff/rules/unused-import/) (`F401`) diagnostic: ```py import math # ruff: ignore[F401] # ruff: ignore[F401] import os ``` - Fixes are now shown in `check` and `format --check` output: ````console ❯ ruff format --check . unformatted: File would be reformatted --> try.md:1:1 | 1 | ```python - import math 2 + import math 3 | ``` | 1 file would be reformatted ```` This example also shows off the Markdown formatting. - `format --check` now supports the same output formats as the linter, including the `github` and `gitlab` outputs for rendering annotations in CI: ```console ❯ ruff format --check --output-format github . ::error title=ruff (unformatted),file=try.md,line=2,col=8,endLine=2,endColumn=10::try.md:2:8: unformatted: File would be reformatted ``` See the CLI help or [documentation](https://docs.astral.sh/ruff/settings/#output-format) for the full list of supported formats. - The `filename`, `location`, `end_location`, `fix.edits[].location`, and `fix.edits[].end_location` fields in the JSON output format may now be `null` rather than defaulting to the empty string and row 1, column 1, respectively. ##### Stabilization The following rules have been stabilized and are no longer in preview: - [`airflow3-incompatible-function-signature`](https://docs.astral.sh/ruff/rules/airflow3-incompatible-function-signature) (`AIR303`) - [`missing-copyright-notice`](https://docs.astral.sh/ruff/rules/missing-copyright-notice) (`CPY001`) - [`unnecessary-from-float`](https://docs.astral.sh/ruff/rules/unnecessary-from-float) (`FURB164`) - [`sorted-min-max`](https://docs.astral.sh/ruff/rules/sorted-min-max) (`FURB192`) - [`implicit-string-concatenation-in-collection-literal`](https://docs.astral.sh/ruff/rules/implicit-string-concatenation-in-collection-literal) (`ISC004`) - [`log-exception-outside-except-handler`](https://docs.astral.sh/ruff/rules/log-exception-outside-except-handler) (`LOG004`) - [`invalid-bool-return-type`](https://docs.astral.sh/ruff/rules/invalid-bool-return-type) (`PLE0304`) - [`too-many-positional-arguments`](https://docs.astral.sh/ruff/rules/too-many-positional-arguments) (`PLR0917`) - [`stop-iteration-return`](https://docs.astral.sh/ruff/rules/stop-iteration-return) (`PLR1708`) - [`none-not-at-end-of-union`](https://docs.astral.sh/ruff/rules/none-not-at-end-of-union) (`RUF036`) - [`access-annotations-from-class-dict`](https://docs.astral.sh/ruff/rules/access-annotations-from-class-dict) (`RUF063`) - [`duplicate-entry-in-dunder-all`](https://docs.astral.sh/ruff/rules/duplicate-entry-in-dunder-all) (`RUF068`) The following behaviors have been stabilized: - [`blind-except`](https://docs.astral.sh/ruff/rules/blind-except) (`BLE001`) is now suppressed when the exception is logged via `logging` methods other than `critical`, `error` and `exception`. - [`future-required-type-annotation`](https://docs.astral.sh/ruff/rules/future-required-type-annotation) (`FA102`) now checks for additional [PEP 585](https://peps.python.org/pep-0585/)-compatible APIs, such as those from `collections.abc`. - [`f-string-in-get-text-func-call`](https://docs.astral.sh/ruff/rules/f-string-in-get-text-func-call) (`INT001`), [`format-in-get-text-func-call`](https://docs.astral.sh/ruff/rules/format-in-get-text-func-call) (`INT002`), and [`printf-in-get-text-func-call`](https://docs.astral.sh/ruff/rules/printf-in-get-text-func-call) (`INT003`) now check for additional common ways of using the `gettext` module, such as assigning it to `builtins._`. - [`suspicious-url-open-usage`](https://docs.astral.sh/ruff/rules/suspicious-url-open-usage) (`S310`) now resolves local string literal bindings to avoid more false positives. - [`snmp-insecure-version`](https://docs.astral.sh/ruff/rules/snmp-insecure-version) (`S508`) and [`snmp-weak-cryptography`](https://docs.astral.sh/ruff/rules/snmp-weak-cryptography) (`S509`) now support the recommended API from newer versions of PySNMP. - [`typing-text-str-alias`](https://docs.astral.sh/ruff/rules/typing-text-str-alias) (`UP019`) now recognizes `typing_extensions.Text` in addition to `typing.Text`. ##### Preview features - \[`pyupgrade`] Fix false positive with `TypeVar` default before Python 3.13 (`UP040`) ([#&#8203;26888](https://github.com/astral-sh/ruff/pull/26888)) ##### Bug fixes - \[`ruff`] Fix missing check on unrecognized early bound (`RUF016`) ([#&#8203;26986](https://github.com/astral-sh/ruff/pull/26986)) ##### Rule changes - Insert a space after the colon in Ruff suppression comments ([#&#8203;27123](https://github.com/astral-sh/ruff/pull/27123)) ##### Performance - \[`pyupgrade`] Speed up `unnecessary-future-import` (`UP010`) ([#&#8203;27047](https://github.com/astral-sh/ruff/pull/27047)) ##### Documentation - \[`ruff`] Add missing period in "Why is this bad?" section (`RUF200`) ([#&#8203;26930](https://github.com/astral-sh/ruff/pull/26930)) - \[`flake8-simplify`] Clarify `os.environ` behavior on Windows (`SIM112`) ([#&#8203;26972](https://github.com/astral-sh/ruff/pull/26972)) - \[`pydocstyle`] Document fix safety (`D400`) ([#&#8203;26971](https://github.com/astral-sh/ruff/pull/26971)) ##### Contributors - [@&#8203;jonathandung](https://github.com/jonathandung) - [@&#8203;Joosboy](https://github.com/Joosboy) - [@&#8203;MichaReiser](https://github.com/MichaReiser) - [@&#8203;Andrej730](https://github.com/Andrej730) - [@&#8203;ntBre](https://github.com/ntBre) - [@&#8203;zaniebot](https://github.com/zaniebot) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMjQuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjY1LjUiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->
Update dependency ruff to ~=0.16.4
Some checks failed
Actions / Build (pull_request) Successful in 33s
Actions / Lint (pull_request) Failing after 34s
Actions / Build Documentation (pull_request) Successful in 43s
1d41356de7
Renovate changed title from Update dependency ruff to ~=0.16.4 to Update dependency ruff to ~=0.16.5 2026-08-27 13:04:40 -04:00
Renovate force-pushed renovate/ruff-0.x from 1d41356de7
Some checks failed
Actions / Build (pull_request) Successful in 33s
Actions / Lint (pull_request) Failing after 34s
Actions / Build Documentation (pull_request) Successful in 43s
to 220486bbd2
Some checks failed
Actions / Lint (pull_request) Failing after 1m32s
Actions / Build (pull_request) Successful in 1m33s
Actions / Build Documentation (pull_request) Successful in 40s
2026-08-27 13:04:41 -04:00
Compare
Renovate force-pushed renovate/ruff-0.x from 220486bbd2
Some checks failed
Actions / Lint (pull_request) Failing after 1m32s
Actions / Build (pull_request) Successful in 1m33s
Actions / Build Documentation (pull_request) Successful in 40s
to 764725a0d1
Some checks failed
Actions / Build (pull_request) Successful in 36s
Actions / Lint (pull_request) Failing after 45s
Actions / Build Documentation (pull_request) Successful in 48s
2026-08-31 00:10:38 -04:00
Compare
Renovate changed title from Update dependency ruff to ~=0.16.5 to Update dependency ruff to ~=0.16.6 2026-09-03 13:04:31 -04:00
Renovate force-pushed renovate/ruff-0.x from 764725a0d1
Some checks failed
Actions / Build (pull_request) Successful in 36s
Actions / Lint (pull_request) Failing after 45s
Actions / Build Documentation (pull_request) Successful in 48s
to 7f7fb8c88f
Some checks failed
Actions / Build (pull_request) Successful in 36s
Actions / Lint (pull_request) Failing after 39s
Actions / Build Documentation (pull_request) Successful in 42s
2026-09-03 13:04:32 -04:00
Compare
Renovate changed title from Update dependency ruff to ~=0.16.6 to Update dependency ruff to ~=0.16.7 2026-09-10 15:04:07 -04:00
Renovate force-pushed renovate/ruff-0.x from 7f7fb8c88f
Some checks failed
Actions / Build (pull_request) Successful in 36s
Actions / Lint (pull_request) Failing after 39s
Actions / Build Documentation (pull_request) Successful in 42s
to ac377e6753
Some checks failed
Actions / Lint (pull_request) Failing after 32s
Actions / Build (pull_request) Successful in 33s
Actions / Build Documentation (pull_request) Successful in 37s
2026-09-10 15:04:07 -04:00
Compare
Some checks failed
Actions / Lint (pull_request) Failing after 32s
Required
Details
Actions / Build (pull_request) Successful in 33s
Required
Details
Actions / Build Documentation (pull_request) Successful in 37s
Required
Details
Some required checks were not successful.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/ruff-0.x:renovate/ruff-0.x
git switch renovate/ruff-0.x
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cswimr/PyFlowery!99
No description provided.