-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Bump ruff from 0.12.3 to 0.12.4 #25462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.12.3 to 0.12.4. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.12.3...0.12.4) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.12.4 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
snnn
approved these changes
Jul 21, 2025
qti-yuduo
pushed a commit
to CodeLinaro/onnxruntime
that referenced
this pull request
Aug 8, 2025
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.12.3 to 0.12.4. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ruff/releases">ruff's releases</a>.</em></p> <blockquote> <h2>0.12.4</h2> <h2>Release Notes</h2> <h3>Preview features</h3> <ul> <li>[<code>flake8-type-checking</code>, <code>pyupgrade</code>, <code>ruff</code>] Add <code>from __future__ import annotations</code> when it would allow new fixes (<code>TC001</code>, <code>TC002</code>, <code>TC003</code>, <code>UP037</code>, <code>RUF013</code>) (<a href="https://github.com/astral-sh/ruff/pull/19100">#19100</a>)</li> <li>[<code>flake8-use-pathlib</code>] Add autofix for <code>PTH109</code> (<a href="https://github.com/astral-sh/ruff/pull/19245">#19245</a>)</li> <li>[<code>pylint</code>] Detect indirect <code>pathlib.Path</code> usages for <code>unspecified-encoding</code> (<code>PLW1514</code>) (<a href="https://github.com/astral-sh/ruff/pull/19304">#19304</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>flake8-bugbear</code>] Fix <code>B017</code> false negatives for keyword exception arguments (<a href="https://github.com/astral-sh/ruff/pull/19217">#19217</a>)</li> <li>[<code>flake8-use-pathlib</code>] Fix false negative on direct <code>Path()</code> instantiation (<code>PTH210</code>) (<a href="https://github.com/astral-sh/ruff/pull/19388">#19388</a>)</li> <li>[<code>flake8-django</code>] Fix <code>DJ008</code> false positive for abstract models with type-annotated <code>abstract</code> field (<a href="https://github.com/astral-sh/ruff/pull/19221">#19221</a>)</li> <li>[<code>isort</code>] Fix <code>I002</code> import insertion after docstring with multiple string statements (<a href="https://github.com/astral-sh/ruff/pull/19222">#19222</a>)</li> <li>[<code>isort</code>] Treat form feed as valid whitespace before a semicolon (<a href="https://github.com/astral-sh/ruff/pull/19343">#19343</a>)</li> <li>[<code>pydoclint</code>] Fix <code>SyntaxError</code> from fixes with line continuations (<code>D201</code>, <code>D202</code>) (<a href="https://github.com/astral-sh/ruff/pull/19246">#19246</a>)</li> <li>[<code>refurb</code>] <code>FURB164</code> fix should validate arguments and should usually be marked unsafe (<a href="https://github.com/astral-sh/ruff/pull/19136">#19136</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-use-pathlib</code>] Skip single dots for <code>invalid-pathlib-with-suffix</code> (<code>PTH210</code>) on versions >= 3.14 (<a href="https://github.com/astral-sh/ruff/pull/19331">#19331</a>)</li> <li>[<code>pep8_naming</code>] Avoid false positives on standard library functions with uppercase names (<code>N802</code>) (<a href="https://github.com/astral-sh/ruff/pull/18907">#18907</a>)</li> <li>[<code>pycodestyle</code>] Handle brace escapes for t-strings in logical lines (<a href="https://github.com/astral-sh/ruff/pull/19358">#19358</a>)</li> <li>[<code>pylint</code>] Extend invalid string character rules to include t-strings (<a href="https://github.com/astral-sh/ruff/pull/19355">#19355</a>)</li> <li>[<code>ruff</code>] Allow <code>strict</code> kwarg when checking for <code>starmap-zip</code> (<code>RUF058</code>) in Python 3.14+ (<a href="https://github.com/astral-sh/ruff/pull/19333">#19333</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>[<code>flake8-type-checking</code>] Make <code>TC010</code> docs example more realistic (<a href="https://github.com/astral-sh/ruff/pull/19356">#19356</a>)</li> <li>Make more documentation examples error out-of-the-box (<a href="https://github.com/astral-sh/ruff/pull/19288">#19288</a>,<a href="https://github.com/astral-sh/ruff/pull/19272">#19272</a>,<a href="https://github.com/astral-sh/ruff/pull/19291">#19291</a>,<a href="https://github.com/astral-sh/ruff/pull/19296">#19296</a>,<a href="https://github.com/astral-sh/ruff/pull/19292">#19292</a>,<a href="https://github.com/astral-sh/ruff/pull/19295">#19295</a>,<a href="https://github.com/astral-sh/ruff/pull/19297">#19297</a>,<a href="https://github.com/astral-sh/ruff/pull/19309">#19309</a>)</li> </ul> <h2>Contributors</h2> <ul> <li><a href="https://github.com/AlexWaygood"><code>@AlexWaygood</code></a></li> <li><a href="https://github.com/BurntSushi"><code>@BurntSushi</code></a></li> <li><a href="https://github.com/Gankra"><code>@Gankra</code></a></li> <li><a href="https://github.com/MatthewMckee4"><code>@MatthewMckee4</code></a></li> <li><a href="https://github.com/MeGaGiGaGon"><code>@MeGaGiGaGon</code></a></li> <li><a href="https://github.com/MichaReiser"><code>@MichaReiser</code></a></li> <li><a href="https://github.com/UnboundVariable"><code>@UnboundVariable</code></a></li> <li><a href="https://github.com/chirizxc"><code>@chirizxc</code></a></li> <li><a href="https://github.com/close2code-palm"><code>@close2code-palm</code></a></li> <li><a href="https://github.com/corneliusroemer"><code>@corneliusroemer</code></a></li> <li><a href="https://github.com/danparizher"><code>@danparizher</code></a></li> <li><a href="https://github.com/dcreager"><code>@dcreager</code></a></li> <li><a href="https://github.com/dhruvmanila"><code>@dhruvmanila</code></a></li> <li><a href="https://github.com/dylwil3"><code>@dylwil3</code></a></li> <li><a href="https://github.com/github-actions"><code>@github-actions</code></a></li> <li><a href="https://github.com/ntBre"><code>@ntBre</code></a></li> <li><a href="https://github.com/oconnor663"><code>@oconnor663</code></a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md">ruff's changelog</a>.</em></p> <blockquote> <h2>0.12.4</h2> <h3>Preview features</h3> <ul> <li>[<code>flake8-type-checking</code>, <code>pyupgrade</code>, <code>ruff</code>] Add <code>from __future__ import annotations</code> when it would allow new fixes (<code>TC001</code>, <code>TC002</code>, <code>TC003</code>, <code>UP037</code>, <code>RUF013</code>) (<a href="https://github.com/astral-sh/ruff/pull/19100">#19100</a>)</li> <li>[<code>flake8-use-pathlib</code>] Add autofix for <code>PTH109</code> (<a href="https://github.com/astral-sh/ruff/pull/19245">#19245</a>)</li> <li>[<code>pylint</code>] Detect indirect <code>pathlib.Path</code> usages for <code>unspecified-encoding</code> (<code>PLW1514</code>) (<a href="https://github.com/astral-sh/ruff/pull/19304">#19304</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>flake8-bugbear</code>] Fix <code>B017</code> false negatives for keyword exception arguments (<a href="https://github.com/astral-sh/ruff/pull/19217">#19217</a>)</li> <li>[<code>flake8-use-pathlib</code>] Fix false negative on direct <code>Path()</code> instantiation (<code>PTH210</code>) (<a href="https://github.com/astral-sh/ruff/pull/19388">#19388</a>)</li> <li>[<code>flake8-django</code>] Fix <code>DJ008</code> false positive for abstract models with type-annotated <code>abstract</code> field (<a href="https://github.com/astral-sh/ruff/pull/19221">#19221</a>)</li> <li>[<code>isort</code>] Fix <code>I002</code> import insertion after docstring with multiple string statements (<a href="https://github.com/astral-sh/ruff/pull/19222">#19222</a>)</li> <li>[<code>isort</code>] Treat form feed as valid whitespace before a semicolon (<a href="https://github.com/astral-sh/ruff/pull/19343">#19343</a>)</li> <li>[<code>pydoclint</code>] Fix <code>SyntaxError</code> from fixes with line continuations (<code>D201</code>, <code>D202</code>) (<a href="https://github.com/astral-sh/ruff/pull/19246">#19246</a>)</li> <li>[<code>refurb</code>] <code>FURB164</code> fix should validate arguments and should usually be marked unsafe (<a href="https://github.com/astral-sh/ruff/pull/19136">#19136</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-use-pathlib</code>] Skip single dots for <code>invalid-pathlib-with-suffix</code> (<code>PTH210</code>) on versions >= 3.14 (<a href="https://github.com/astral-sh/ruff/pull/19331">#19331</a>)</li> <li>[<code>pep8_naming</code>] Avoid false positives on standard library functions with uppercase names (<code>N802</code>) (<a href="https://github.com/astral-sh/ruff/pull/18907">#18907</a>)</li> <li>[<code>pycodestyle</code>] Handle brace escapes for t-strings in logical lines (<a href="https://github.com/astral-sh/ruff/pull/19358">#19358</a>)</li> <li>[<code>pylint</code>] Extend invalid string character rules to include t-strings (<a href="https://github.com/astral-sh/ruff/pull/19355">#19355</a>)</li> <li>[<code>ruff</code>] Allow <code>strict</code> kwarg when checking for <code>starmap-zip</code> (<code>RUF058</code>) in Python 3.14+ (<a href="https://github.com/astral-sh/ruff/pull/19333">#19333</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>[<code>flake8-type-checking</code>] Make <code>TC010</code> docs example more realistic (<a href="https://github.com/astral-sh/ruff/pull/19356">#19356</a>)</li> <li>Make more documentation examples error out-of-the-box (<a href="https://github.com/astral-sh/ruff/pull/19288">#19288</a>,<a href="https://github.com/astral-sh/ruff/pull/19272">#19272</a>,<a href="https://github.com/astral-sh/ruff/pull/19291">#19291</a>,<a href="https://github.com/astral-sh/ruff/pull/19296">#19296</a>,<a href="https://github.com/astral-sh/ruff/pull/19292">#19292</a>,<a href="https://github.com/astral-sh/ruff/pull/19295">#19295</a>,<a href="https://github.com/astral-sh/ruff/pull/19297">#19297</a>,<a href="https://github.com/astral-sh/ruff/pull/19309">#19309</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/astral-sh/ruff/commit/ee2759b365448e58503b63636c1cedaa65360bd1"><code>ee2759b</code></a> Bump 0.12.4 (<a href="https://github.com/astral-sh/ruff/issues/19406">#19406</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/35f33d9bf5b9dd1cdf4af96999c0f61b8e900579"><code>35f33d9</code></a> [ty] publish settings diagnostics (<a href="https://github.com/astral-sh/ruff/issues/19335">#19335</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/5d78b3117aecccbf02a43f10b759127149ae6ce3"><code>5d78b31</code></a> [<code>flake8-use-pathlib</code>] Add autofix for <code>PTH109</code> (<a href="https://github.com/astral-sh/ruff/issues/19245">#19245</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/c2a05b4825a51d9875b88e5b8b05720ceb4b0e51"><code>c2a05b4</code></a> [ty] Use <code>bitflags</code> for resolved client capabilities (<a href="https://github.com/astral-sh/ruff/issues/19393">#19393</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/fae0b5c89e266237d10e5879df80f452fe2d4ad9"><code>fae0b5c</code></a> [ty] Initial implementation of declaration and definition providers. (<a href="https://github.com/astral-sh/ruff/issues/19371">#19371</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/cbe94b094b4d8ab88feea1ec8343e0ff033e8cae"><code>cbe94b0</code></a> [ty] Support empty function bodies in <code>if TYPE_CHECKING</code> blocks (<a href="https://github.com/astral-sh/ruff/issues/19372">#19372</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/029de784f1ea5ef470cf1471c89e2cbe320f125a"><code>029de78</code></a> [<code>flake8-use-pathlib</code>] Fix false negative on direct <code>Path()</code> instantiation (`...</li> <li><a href="https://github.com/astral-sh/ruff/commit/ff94fe7447a8aff4f408fcac8d7dd1d686c50688"><code>ff94fe7</code></a> Treat form feed as valid whitespace before a semicolon (<a href="https://github.com/astral-sh/ruff/issues/19343">#19343</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/b2501b45e06ecdc653ae52565e90dd163aa30f8a"><code>b2501b4</code></a> [<code>pylint</code>] Detect indirect <code>pathlib.Path</code> usages for <code>unspecified-encoding</code> (...</li> <li><a href="https://github.com/astral-sh/ruff/commit/291699b375f694c659fe82bdd68b149bde2494ee"><code>291699b</code></a> [<code>refurb</code>] <code>FURB164</code> fix should validate arguments and should usually be mark...</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/0.12.3...0.12.4">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
sanketkaleoss
pushed a commit
to sanketkaleoss/onnxruntime
that referenced
this pull request
Aug 11, 2025
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.12.3 to 0.12.4. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ruff/releases">ruff's releases</a>.</em></p> <blockquote> <h2>0.12.4</h2> <h2>Release Notes</h2> <h3>Preview features</h3> <ul> <li>[<code>flake8-type-checking</code>, <code>pyupgrade</code>, <code>ruff</code>] Add <code>from __future__ import annotations</code> when it would allow new fixes (<code>TC001</code>, <code>TC002</code>, <code>TC003</code>, <code>UP037</code>, <code>RUF013</code>) (<a href="https://github.com/astral-sh/ruff/pull/19100">#19100</a>)</li> <li>[<code>flake8-use-pathlib</code>] Add autofix for <code>PTH109</code> (<a href="https://github.com/astral-sh/ruff/pull/19245">#19245</a>)</li> <li>[<code>pylint</code>] Detect indirect <code>pathlib.Path</code> usages for <code>unspecified-encoding</code> (<code>PLW1514</code>) (<a href="https://github.com/astral-sh/ruff/pull/19304">#19304</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>flake8-bugbear</code>] Fix <code>B017</code> false negatives for keyword exception arguments (<a href="https://github.com/astral-sh/ruff/pull/19217">#19217</a>)</li> <li>[<code>flake8-use-pathlib</code>] Fix false negative on direct <code>Path()</code> instantiation (<code>PTH210</code>) (<a href="https://github.com/astral-sh/ruff/pull/19388">#19388</a>)</li> <li>[<code>flake8-django</code>] Fix <code>DJ008</code> false positive for abstract models with type-annotated <code>abstract</code> field (<a href="https://github.com/astral-sh/ruff/pull/19221">#19221</a>)</li> <li>[<code>isort</code>] Fix <code>I002</code> import insertion after docstring with multiple string statements (<a href="https://github.com/astral-sh/ruff/pull/19222">#19222</a>)</li> <li>[<code>isort</code>] Treat form feed as valid whitespace before a semicolon (<a href="https://github.com/astral-sh/ruff/pull/19343">#19343</a>)</li> <li>[<code>pydoclint</code>] Fix <code>SyntaxError</code> from fixes with line continuations (<code>D201</code>, <code>D202</code>) (<a href="https://github.com/astral-sh/ruff/pull/19246">#19246</a>)</li> <li>[<code>refurb</code>] <code>FURB164</code> fix should validate arguments and should usually be marked unsafe (<a href="https://github.com/astral-sh/ruff/pull/19136">#19136</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-use-pathlib</code>] Skip single dots for <code>invalid-pathlib-with-suffix</code> (<code>PTH210</code>) on versions >= 3.14 (<a href="https://github.com/astral-sh/ruff/pull/19331">#19331</a>)</li> <li>[<code>pep8_naming</code>] Avoid false positives on standard library functions with uppercase names (<code>N802</code>) (<a href="https://github.com/astral-sh/ruff/pull/18907">#18907</a>)</li> <li>[<code>pycodestyle</code>] Handle brace escapes for t-strings in logical lines (<a href="https://github.com/astral-sh/ruff/pull/19358">#19358</a>)</li> <li>[<code>pylint</code>] Extend invalid string character rules to include t-strings (<a href="https://github.com/astral-sh/ruff/pull/19355">#19355</a>)</li> <li>[<code>ruff</code>] Allow <code>strict</code> kwarg when checking for <code>starmap-zip</code> (<code>RUF058</code>) in Python 3.14+ (<a href="https://github.com/astral-sh/ruff/pull/19333">#19333</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>[<code>flake8-type-checking</code>] Make <code>TC010</code> docs example more realistic (<a href="https://github.com/astral-sh/ruff/pull/19356">#19356</a>)</li> <li>Make more documentation examples error out-of-the-box (<a href="https://github.com/astral-sh/ruff/pull/19288">#19288</a>,<a href="https://github.com/astral-sh/ruff/pull/19272">#19272</a>,<a href="https://github.com/astral-sh/ruff/pull/19291">#19291</a>,<a href="https://github.com/astral-sh/ruff/pull/19296">#19296</a>,<a href="https://github.com/astral-sh/ruff/pull/19292">#19292</a>,<a href="https://github.com/astral-sh/ruff/pull/19295">#19295</a>,<a href="https://github.com/astral-sh/ruff/pull/19297">#19297</a>,<a href="https://github.com/astral-sh/ruff/pull/19309">#19309</a>)</li> </ul> <h2>Contributors</h2> <ul> <li><a href="https://github.com/AlexWaygood"><code>@AlexWaygood</code></a></li> <li><a href="https://github.com/BurntSushi"><code>@BurntSushi</code></a></li> <li><a href="https://github.com/Gankra"><code>@Gankra</code></a></li> <li><a href="https://github.com/MatthewMckee4"><code>@MatthewMckee4</code></a></li> <li><a href="https://github.com/MeGaGiGaGon"><code>@MeGaGiGaGon</code></a></li> <li><a href="https://github.com/MichaReiser"><code>@MichaReiser</code></a></li> <li><a href="https://github.com/UnboundVariable"><code>@UnboundVariable</code></a></li> <li><a href="https://github.com/chirizxc"><code>@chirizxc</code></a></li> <li><a href="https://github.com/close2code-palm"><code>@close2code-palm</code></a></li> <li><a href="https://github.com/corneliusroemer"><code>@corneliusroemer</code></a></li> <li><a href="https://github.com/danparizher"><code>@danparizher</code></a></li> <li><a href="https://github.com/dcreager"><code>@dcreager</code></a></li> <li><a href="https://github.com/dhruvmanila"><code>@dhruvmanila</code></a></li> <li><a href="https://github.com/dylwil3"><code>@dylwil3</code></a></li> <li><a href="https://github.com/github-actions"><code>@github-actions</code></a></li> <li><a href="https://github.com/ntBre"><code>@ntBre</code></a></li> <li><a href="https://github.com/oconnor663"><code>@oconnor663</code></a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md">ruff's changelog</a>.</em></p> <blockquote> <h2>0.12.4</h2> <h3>Preview features</h3> <ul> <li>[<code>flake8-type-checking</code>, <code>pyupgrade</code>, <code>ruff</code>] Add <code>from __future__ import annotations</code> when it would allow new fixes (<code>TC001</code>, <code>TC002</code>, <code>TC003</code>, <code>UP037</code>, <code>RUF013</code>) (<a href="https://github.com/astral-sh/ruff/pull/19100">#19100</a>)</li> <li>[<code>flake8-use-pathlib</code>] Add autofix for <code>PTH109</code> (<a href="https://github.com/astral-sh/ruff/pull/19245">#19245</a>)</li> <li>[<code>pylint</code>] Detect indirect <code>pathlib.Path</code> usages for <code>unspecified-encoding</code> (<code>PLW1514</code>) (<a href="https://github.com/astral-sh/ruff/pull/19304">#19304</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>flake8-bugbear</code>] Fix <code>B017</code> false negatives for keyword exception arguments (<a href="https://github.com/astral-sh/ruff/pull/19217">#19217</a>)</li> <li>[<code>flake8-use-pathlib</code>] Fix false negative on direct <code>Path()</code> instantiation (<code>PTH210</code>) (<a href="https://github.com/astral-sh/ruff/pull/19388">#19388</a>)</li> <li>[<code>flake8-django</code>] Fix <code>DJ008</code> false positive for abstract models with type-annotated <code>abstract</code> field (<a href="https://github.com/astral-sh/ruff/pull/19221">#19221</a>)</li> <li>[<code>isort</code>] Fix <code>I002</code> import insertion after docstring with multiple string statements (<a href="https://github.com/astral-sh/ruff/pull/19222">#19222</a>)</li> <li>[<code>isort</code>] Treat form feed as valid whitespace before a semicolon (<a href="https://github.com/astral-sh/ruff/pull/19343">#19343</a>)</li> <li>[<code>pydoclint</code>] Fix <code>SyntaxError</code> from fixes with line continuations (<code>D201</code>, <code>D202</code>) (<a href="https://github.com/astral-sh/ruff/pull/19246">#19246</a>)</li> <li>[<code>refurb</code>] <code>FURB164</code> fix should validate arguments and should usually be marked unsafe (<a href="https://github.com/astral-sh/ruff/pull/19136">#19136</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-use-pathlib</code>] Skip single dots for <code>invalid-pathlib-with-suffix</code> (<code>PTH210</code>) on versions >= 3.14 (<a href="https://github.com/astral-sh/ruff/pull/19331">#19331</a>)</li> <li>[<code>pep8_naming</code>] Avoid false positives on standard library functions with uppercase names (<code>N802</code>) (<a href="https://github.com/astral-sh/ruff/pull/18907">#18907</a>)</li> <li>[<code>pycodestyle</code>] Handle brace escapes for t-strings in logical lines (<a href="https://github.com/astral-sh/ruff/pull/19358">#19358</a>)</li> <li>[<code>pylint</code>] Extend invalid string character rules to include t-strings (<a href="https://github.com/astral-sh/ruff/pull/19355">#19355</a>)</li> <li>[<code>ruff</code>] Allow <code>strict</code> kwarg when checking for <code>starmap-zip</code> (<code>RUF058</code>) in Python 3.14+ (<a href="https://github.com/astral-sh/ruff/pull/19333">#19333</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>[<code>flake8-type-checking</code>] Make <code>TC010</code> docs example more realistic (<a href="https://github.com/astral-sh/ruff/pull/19356">#19356</a>)</li> <li>Make more documentation examples error out-of-the-box (<a href="https://github.com/astral-sh/ruff/pull/19288">#19288</a>,<a href="https://github.com/astral-sh/ruff/pull/19272">#19272</a>,<a href="https://github.com/astral-sh/ruff/pull/19291">#19291</a>,<a href="https://github.com/astral-sh/ruff/pull/19296">#19296</a>,<a href="https://github.com/astral-sh/ruff/pull/19292">#19292</a>,<a href="https://github.com/astral-sh/ruff/pull/19295">#19295</a>,<a href="https://github.com/astral-sh/ruff/pull/19297">#19297</a>,<a href="https://github.com/astral-sh/ruff/pull/19309">#19309</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/astral-sh/ruff/commit/ee2759b365448e58503b63636c1cedaa65360bd1"><code>ee2759b</code></a> Bump 0.12.4 (<a href="https://github.com/astral-sh/ruff/issues/19406">#19406</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/35f33d9bf5b9dd1cdf4af96999c0f61b8e900579"><code>35f33d9</code></a> [ty] publish settings diagnostics (<a href="https://github.com/astral-sh/ruff/issues/19335">#19335</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/5d78b3117aecccbf02a43f10b759127149ae6ce3"><code>5d78b31</code></a> [<code>flake8-use-pathlib</code>] Add autofix for <code>PTH109</code> (<a href="https://github.com/astral-sh/ruff/issues/19245">#19245</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/c2a05b4825a51d9875b88e5b8b05720ceb4b0e51"><code>c2a05b4</code></a> [ty] Use <code>bitflags</code> for resolved client capabilities (<a href="https://github.com/astral-sh/ruff/issues/19393">#19393</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/fae0b5c89e266237d10e5879df80f452fe2d4ad9"><code>fae0b5c</code></a> [ty] Initial implementation of declaration and definition providers. (<a href="https://github.com/astral-sh/ruff/issues/19371">#19371</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/cbe94b094b4d8ab88feea1ec8343e0ff033e8cae"><code>cbe94b0</code></a> [ty] Support empty function bodies in <code>if TYPE_CHECKING</code> blocks (<a href="https://github.com/astral-sh/ruff/issues/19372">#19372</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/029de784f1ea5ef470cf1471c89e2cbe320f125a"><code>029de78</code></a> [<code>flake8-use-pathlib</code>] Fix false negative on direct <code>Path()</code> instantiation (`...</li> <li><a href="https://github.com/astral-sh/ruff/commit/ff94fe7447a8aff4f408fcac8d7dd1d686c50688"><code>ff94fe7</code></a> Treat form feed as valid whitespace before a semicolon (<a href="https://github.com/astral-sh/ruff/issues/19343">#19343</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/b2501b45e06ecdc653ae52565e90dd163aa30f8a"><code>b2501b4</code></a> [<code>pylint</code>] Detect indirect <code>pathlib.Path</code> usages for <code>unspecified-encoding</code> (...</li> <li><a href="https://github.com/astral-sh/ruff/commit/291699b375f694c659fe82bdd68b149bde2494ee"><code>291699b</code></a> [<code>refurb</code>] <code>FURB164</code> fix should validate arguments and should usually be mark...</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/0.12.3...0.12.4">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
dependencies
Pull requests that update a dependency file
python
Pull requests that update Python code
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps ruff from 0.12.3 to 0.12.4.
Release notes
Sourced from ruff's releases.
... (truncated)
Changelog
Sourced from ruff's changelog.
Commits
ee2759bBump 0.12.4 (#19406)35f33d9[ty] publish settings diagnostics (#19335)5d78b31[flake8-use-pathlib] Add autofix forPTH109(#19245)c2a05b4[ty] Usebitflagsfor resolved client capabilities (#19393)fae0b5c[ty] Initial implementation of declaration and definition providers. (#19371)cbe94b0[ty] Support empty function bodies inif TYPE_CHECKINGblocks (#19372)029de78[flake8-use-pathlib] Fix false negative on directPath()instantiation (`...ff94fe7Treat form feed as valid whitespace before a semicolon (#19343)b2501b4[pylint] Detect indirectpathlib.Pathusages forunspecified-encoding(...291699b[refurb]FURB164fix should validate arguments and should usually be mark...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)