Skip to content

Bump ruff from 0.9.5 to 0.11.6#24480

Merged
snnn merged 5 commits intomainfrom
dependabot/pip/ruff-0.11.6
Apr 28, 2025
Merged

Bump ruff from 0.9.5 to 0.11.6#24480
snnn merged 5 commits intomainfrom
dependabot/pip/ruff-0.11.6

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 21, 2025

Bumps ruff from 0.9.5 to 0.11.6.

Release notes

Sourced from ruff's releases.

0.11.6

Release Notes

Preview features

  • Avoid adding whitespace to the end of a docstring after an escaped quote (#17216)
  • [airflow] Extract AIR311 from AIR301 rules (AIR301, AIR311) (#17310, #17422)

Bug fixes

  • Raise syntax error when \ is at end of file (#17409)

Contributors

Install ruff 0.11.6

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/ruff/releases/download/0.11.6/ruff-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -ExecutionPolicy Bypass -c "irm https://github.com/astral-sh/ruff/releases/download/0.11.6/ruff-installer.ps1 | iex"

Download ruff 0.11.6

File Platform Checksum

... (truncated)

Changelog

Sourced from ruff's changelog.

0.11.6

Preview features

  • Avoid adding whitespace to the end of a docstring after an escaped quote (#17216)
  • [airflow] Extract AIR311 from AIR301 rules (AIR301, AIR311) (#17310, #17422)

Bug fixes

  • Raise syntax error when \ is at end of file (#17409)

0.11.5

Preview features

  • [airflow] Add missing AIR302 attribute check (#17115)
  • [airflow] Expand module path check to individual symbols (AIR302) (#17278)
  • [airflow] Extract AIR312 from AIR302 rules (AIR302, AIR312) (#17152)
  • [airflow] Update oudated AIR301, AIR302 rules (#17123)
  • [syntax-errors] Async comprehension in sync comprehension (#17177)
  • [syntax-errors] Check annotations in annotated assignments (#17283)
  • [syntax-errors] Extend annotation checks to await (#17282)

Bug fixes

  • [flake8-pie] Avoid false positive for multiple assignment with auto() (PIE796) (#17274)

Rule changes

  • [ruff] Fix RUF100 to detect unused file-level noqa directives with specific codes (#17042) (#17061)
  • [flake8-pytest-style] Avoid false positive for legacy form of pytest.raises (PT011) (#17231)

Documentation

  • Fix formatting of "See Style Guide" link (#17272)

0.11.4

Preview features

  • [ruff] Implement invalid-rule-code as RUF102 (#17138)
  • [syntax-errors] Detect duplicate keys in match mapping patterns (#17129)
  • [syntax-errors] Detect duplicate attributes in match class patterns (#17186)
  • [syntax-errors] Detect invalid syntax in annotations (#17101)

Bug fixes

  • [syntax-errors] Fix multiple assignment error for class fields in match patterns (#17184)
  • Don't skip visiting non-tuple slice in typing.Annotated subscripts (#17201)

... (truncated)

Commits

Dependabot compatibility score

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 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)

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.9.5 to 0.11.6.
- [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.9.5...0.11.6)

---
updated-dependencies:
- dependency-name: ruff
  dependency-version: 0.11.6
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Apr 21, 2025
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 28, 2025

A newer version of ruff exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@snnn
Copy link
Contributor

snnn commented Apr 28, 2025

/azp run Linux QNN CI Pipeline, Win_TRT_Minimal_CUDA_Test_CI, Windows ARM64 QNN CI Pipeline, Windows GPU Doc Gen CI Pipeline, Windows x64 QNN CI Pipeline

@azure-pipelines
Copy link

Azure Pipelines successfully started running 5 pipeline(s).

@snnn snnn merged commit e5103af into main Apr 28, 2025
69 of 70 checks passed
@snnn snnn deleted the dependabot/pip/ruff-0.11.6 branch April 28, 2025 19:58
ankitm3k pushed a commit to intel/onnxruntime that referenced this pull request May 12, 2025
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.9.5 to 0.11.6.
<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.11.6</h2>
<h2>Release Notes</h2>
<h3>Preview features</h3>
<ul>
<li>Avoid adding whitespace to the end of a docstring after an escaped
quote (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17216">#17216</a>)</li>
<li>[<code>airflow</code>] Extract <code>AIR311</code> from
<code>AIR301</code> rules (<code>AIR301</code>, <code>AIR311</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17310">#17310</a>,
<a
href="https://redirect.github.com/astral-sh/ruff/pull/17422">#17422</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Raise syntax error when <code>\</code> is at end of file (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17409">#17409</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/Lee-W"><code>@​Lee-W</code></a></li>
<li><a
href="https://github.com/MatthewMckee4"><code>@​MatthewMckee4</code></a></li>
<li><a
href="https://github.com/MichaReiser"><code>@​MichaReiser</code></a></li>
<li><a
href="https://github.com/cake-monotone"><code>@​cake-monotone</code></a></li>
<li><a href="https://github.com/carljm"><code>@​carljm</code></a></li>
<li><a
href="https://github.com/charliermarsh"><code>@​charliermarsh</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/github-actions"><code>@​github-actions</code></a></li>
<li><a
href="https://github.com/maxmynter"><code>@​maxmynter</code></a></li>
<li><a
href="https://github.com/mishamsk"><code>@​mishamsk</code></a></li>
<li><a href="https://github.com/mtshiba"><code>@​mtshiba</code></a></li>
<li><a href="https://github.com/ntBre"><code>@​ntBre</code></a></li>
<li><a
href="https://github.com/renovate"><code>@​renovate</code></a></li>
<li><a href="https://github.com/sharkdp"><code>@​sharkdp</code></a></li>
</ul>
<h2>Install ruff 0.11.6</h2>
<h3>Install prebuilt binaries via shell script</h3>
<pre lang="sh"><code>curl --proto '=https' --tlsv1.2 -LsSf
https://github.com/astral-sh/ruff/releases/download/0.11.6/ruff-installer.sh
| sh
</code></pre>
<h3>Install prebuilt binaries via powershell script</h3>
<pre lang="sh"><code>powershell -ExecutionPolicy Bypass -c &quot;irm
https://github.com/astral-sh/ruff/releases/download/0.11.6/ruff-installer.ps1
| iex&quot;
</code></pre>
<h2>Download ruff 0.11.6</h2>
<table>
<thead>
<tr>
<th>File</th>
<th>Platform</th>
<th>Checksum</th>
</tr>
</thead>
</table>
<!-- 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.11.6</h2>
<h3>Preview features</h3>
<ul>
<li>Avoid adding whitespace to the end of a docstring after an escaped
quote (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17216">#17216</a>)</li>
<li>[<code>airflow</code>] Extract <code>AIR311</code> from
<code>AIR301</code> rules (<code>AIR301</code>, <code>AIR311</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17310">#17310</a>,
<a
href="https://redirect.github.com/astral-sh/ruff/pull/17422">#17422</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Raise syntax error when <code>\</code> is at end of file (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17409">#17409</a>)</li>
</ul>
<h2>0.11.5</h2>
<h3>Preview features</h3>
<ul>
<li>[<code>airflow</code>] Add missing <code>AIR302</code> attribute
check (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17115">#17115</a>)</li>
<li>[<code>airflow</code>] Expand module path check to individual
symbols (<code>AIR302</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17278">#17278</a>)</li>
<li>[<code>airflow</code>] Extract <code>AIR312</code> from
<code>AIR302</code> rules (<code>AIR302</code>, <code>AIR312</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17152">#17152</a>)</li>
<li>[<code>airflow</code>] Update oudated <code>AIR301</code>,
<code>AIR302</code> rules (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17123">#17123</a>)</li>
<li>[syntax-errors] Async comprehension in sync comprehension (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17177">#17177</a>)</li>
<li>[syntax-errors] Check annotations in annotated assignments (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17283">#17283</a>)</li>
<li>[syntax-errors] Extend annotation checks to <code>await</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17282">#17282</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>[<code>flake8-pie</code>] Avoid false positive for multiple
assignment with <code>auto()</code> (<code>PIE796</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17274">#17274</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>ruff</code>] Fix <code>RUF100</code> to detect unused
file-level <code>noqa</code> directives with specific codes (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17042">#17042</a>)
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/17061">#17061</a>)</li>
<li>[<code>flake8-pytest-style</code>] Avoid false positive for legacy
form of <code>pytest.raises</code> (<code>PT011</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17231">#17231</a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li>Fix formatting of &quot;See Style Guide&quot; link (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17272">#17272</a>)</li>
</ul>
<h2>0.11.4</h2>
<h3>Preview features</h3>
<ul>
<li>[<code>ruff</code>] Implement <code>invalid-rule-code</code> as
<code>RUF102</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17138">#17138</a>)</li>
<li>[syntax-errors] Detect duplicate keys in <code>match</code> mapping
patterns (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17129">#17129</a>)</li>
<li>[syntax-errors] Detect duplicate attributes in <code>match</code>
class patterns (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17186">#17186</a>)</li>
<li>[syntax-errors] Detect invalid syntax in annotations (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17101">#17101</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>[syntax-errors] Fix multiple assignment error for class fields in
<code>match</code> patterns (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17184">#17184</a>)</li>
<li>Don't skip visiting non-tuple slice in <code>typing.Annotated</code>
subscripts (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17201">#17201</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/astral-sh/ruff/commit/fcd50a0496d725f773c6da149035f98bd90b6a30"><code>fcd50a0</code></a>
Bump 0.11.6 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17449">#17449</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/3ada36b766583c92c82bccce3519a467ae068630"><code>3ada36b</code></a>
Auto generate <code>visit_source_order</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17180">#17180</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/bd8983821289e436c2d4c1463c118baa02c7ef5b"><code>bd89838</code></a>
[red-knot] Initial tests for protocols (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17436">#17436</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/b32407b6f3c300650b8a3b0a6cb1ce3c5f812c84"><code>b32407b</code></a>
[red-knot] Dataclasses: synthesize <code>__init__</code> with proper
signature (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17428">#17428</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/b4de245a5accc5ebe35e580a73040da8d99ed566"><code>b4de245</code></a>
[red-knot] Dataclasses: support <code>order=True</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17406">#17406</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/914095d08f02ed91b1acf807aca89723f3632fb9"><code>914095d</code></a>
[red-knot] Super-basic generic inference at call sites (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17301">#17301</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/5350288d0773f986e90653c44a6304d9411b5782"><code>5350288</code></a>
[red-knot] Check assignability of bound methods to callables (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17430">#17430</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/649610cc98add11d8ff48c6d0fba928fb1e00262"><code>649610c</code></a>
[red-knot] Support <code>super</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17174">#17174</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/1a79722ee0fb160f8929612508d5ee88b7838d09"><code>1a79722</code></a>
[<code>airflow</code>] Extend <code>AIR311</code> rules (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17422">#17422</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/b67590bfde9de44757a3365d43040b8f93c10f35"><code>b67590b</code></a>
[red-knot] simplify union size limit handling (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17429">#17429</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/0.9.5...0.11.6">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=ruff&package-manager=pip&previous-version=0.9.5&new-version=0.11.6)](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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Changming Sun <chasun@microsoft.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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants