Bladeren bron

Bump ruff from 0.11.2 to 0.11.4 (#1525)

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.11.2 to 0.11.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.11.4</h2>
<h2>Release Notes</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>
<h2>Contributors</h2>
<ul>
<li><a
href="https://github.com/AlexWaygood"><code>@​AlexWaygood</code></a></li>
<li><a
href="https://github.com/Daverball"><code>@​Daverball</code></a></li>
<li><a href="https://github.com/Gankra"><code>@​Gankra</code></a></li>
<li><a
href="https://github.com/MichaReiser"><code>@​MichaReiser</code></a></li>
<li><a href="https://github.com/carljm"><code>@​carljm</code></a></li>
<li><a
href="https://github.com/dcreager"><code>@​dcreager</code></a></li>
<li><a href="https://github.com/dylwil3"><code>@​dylwil3</code></a></li>
<li><a
href="https://github.com/maxmynter"><code>@​maxmynter</code></a></li>
<li><a href="https://github.com/ntBre"><code>@​ntBre</code></a></li>
<li><a href="https://github.com/sharkdp"><code>@​sharkdp</code></a></li>
</ul>
<h2>Install ruff 0.11.4</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.4/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.4/ruff-installer.ps1
| iex&quot;
</code></pre>
<h2>Download ruff 0.11.4</h2>
<table>
<thead>
<tr>
<th>File</th>
<th>Platform</th>
<th>Checksum</th>
</tr>
</thead>
<tbody>
<tr>
<td><a
href="https://github.com/astral-sh/ruff/releases/download/0.11.4/ruff-aarch64-apple-darwin.tar.gz">ruff-aarch64-apple-darwin.tar.gz</a></td>
<td>Apple Silicon macOS</td>
<td><a
href="https://github.com/astral-sh/ruff/releases/download/0.11.4/ruff-aarch64-apple-darwin.tar.gz.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://github.com/astral-sh/ruff/releases/download/0.11.4/ruff-x86_64-apple-darwin.tar.gz">ruff-x86_64-apple-darwin.tar.gz</a></td>
<td>Intel macOS</td>
<td><a
href="https://github.com/astral-sh/ruff/releases/download/0.11.4/ruff-x86_64-apple-darwin.tar.gz.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://github.com/astral-sh/ruff/releases/download/0.11.4/ruff-aarch64-pc-windows-msvc.zip">ruff-aarch64-pc-windows-msvc.zip</a></td>
<td>ARM64 Windows</td>
<td><a
href="https://github.com/astral-sh/ruff/releases/download/0.11.4/ruff-aarch64-pc-windows-msvc.zip.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://github.com/astral-sh/ruff/releases/download/0.11.4/ruff-i686-pc-windows-msvc.zip">ruff-i686-pc-windows-msvc.zip</a></td>
<td>x86 Windows</td>
<td><a
href="https://github.com/astral-sh/ruff/releases/download/0.11.4/ruff-i686-pc-windows-msvc.zip.sha256">checksum</a></td>
</tr>
</tbody>
</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.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>
<h2>0.11.3</h2>
<h3>Preview features</h3>
<ul>
<li>[<code>airflow</code>] Add more autofixes for <code>AIR302</code>
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/16876">#16876</a>,
<a
href="https://redirect.github.com/astral-sh/ruff/pull/16977">#16977</a>,
<a
href="https://redirect.github.com/astral-sh/ruff/pull/16976">#16976</a>,
<a
href="https://redirect.github.com/astral-sh/ruff/pull/16965">#16965</a>)</li>
<li>[<code>airflow</code>] Move <code>AIR301</code> to
<code>AIR002</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/16978">#16978</a>)</li>
<li>[<code>airflow</code>] Move <code>AIR302</code> to
<code>AIR301</code> and <code>AIR303</code> to <code>AIR302</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17151">#17151</a>)</li>
<li>[<code>flake8-bandit</code>] Mark <code>str</code> and
<code>list[str]</code> literals as trusted input (<code>S603</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17136">#17136</a>)</li>
<li>[<code>ruff</code>] Support slices in <code>RUF005</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17078">#17078</a>)</li>
<li>[syntax-errors] Start detecting compile-time syntax errors (<a
href="https://redirect.github.com/astral-sh/ruff/pull/16106">#16106</a>)</li>
<li>[syntax-errors] Duplicate type parameter names (<a
href="https://redirect.github.com/astral-sh/ruff/pull/16858">#16858</a>)</li>
<li>[syntax-errors] Irrefutable <code>case</code> pattern before final
case (<a
href="https://redirect.github.com/astral-sh/ruff/pull/16905">#16905</a>)</li>
<li>[syntax-errors] Multiple assignments in <code>case</code> pattern
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/16957">#16957</a>)</li>
<li>[syntax-errors] Single starred assignment target (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17024">#17024</a>)</li>
<li>[syntax-errors] Starred expressions in <code>return</code>,
<code>yield</code>, and <code>for</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17134">#17134</a>)</li>
<li>[syntax-errors] Store to or delete <code>__debug__</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/16984">#16984</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Error instead of <code>panic!</code> when running Ruff from a
deleted directory (<a
href="https://redirect.github.com/astral-sh/ruff/issues/16903">#16903</a>)
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/17054">#17054</a>)</li>
<li>[syntax-errors] Fix false positive for parenthesized tuple index (<a
href="https://redirect.github.com/astral-sh/ruff/pull/16948">#16948</a>)</li>
</ul>
<h3>CLI</h3>
<ul>
<li>Check <code>pyproject.toml</code> correctly when it is passed via
stdin (<a
href="https://redirect.github.com/astral-sh/ruff/pull/16971">#16971</a>)</li>
</ul>
<h3>Configuration</h3>
<ul>
<li>[<code>flake8-import-conventions</code>] Add import
<code>numpy.typing as npt</code> to default
<code>flake8-import-conventions.aliases</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/17133">#17133</a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li>[<code>refurb</code>] Document why <code>UserDict</code>,
<code>UserList</code>, and <code>UserString</code> are preferred over
<code>dict</code>, <code>list</code>, and <code>str</code>
(<code>FURB189</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/16927">#16927</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/astral-sh/ruff/commit/95d6ed40cc096f09f62b5f01d392f83646ad84c3"><code>95d6ed4</code></a>
Bump 0.11.4 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17212">#17212</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/acc5662e8bc59de624f1037591844a8844e13792"><code>acc5662</code></a>
[syntax-errors] Allow <code>yield</code> in base classes and annotations
(<a
href="https://redirect.github.com/astral-sh/ruff/issues/17206">#17206</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/33a56f198b3653312f9adb4bc8be41aedce52fbc"><code>33a56f1</code></a>
Don't skip visiting non-tuple slice in <code>typing.Annotated</code>
subscripts (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17201">#17201</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/5cee34674472b976998ee79683f08dcd2fde090a"><code>5cee346</code></a>
[red-knot] mypy_primer: do not specify Python version (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17200">#17200</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/ffa824e0376a2d54cc6aae8845d610b34c10c0a6"><code>ffa824e</code></a>
[red-knot] Add <code>Type.definition</code> method (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17153">#17153</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/98b95c9c38a36cfee572b072e07c634cf7b762f4"><code>98b95c9</code></a>
Implement <code>Invalid rule provided</code> as rule RUF102 with
<code>--fix</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17138">#17138</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/a4ba10ff0ae89d331422d50c87c0ac0691ee0161"><code>a4ba10f</code></a>
[red-knot] Add basic on-hover to playground and LSP (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17057">#17057</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/bf0306887abadfff1f3c857846baf0b6320b5572"><code>bf03068</code></a>
[red-knot] don't remove negations when simplifying constrained typevars
(<a
href="https://redirect.github.com/astral-sh/ruff/issues/17189">#17189</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/4f924bb97524c217d743d9244e76651e1d7cafc7"><code>4f924bb</code></a>
[minor] Fix extra semicolon for clippy (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17188">#17188</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/c2b2e42ad3f83617a75565fb5e4a6bb1b129212c"><code>c2b2e42</code></a>
[syntax-errors] Invalid syntax in annotations (<a
href="https://redirect.github.com/astral-sh/ruff/issues/17101">#17101</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/0.11.2...0.11.4">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.11.2&new-version=0.11.4)](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>
dependabot[bot] 1 week geleden
bovenliggende
commit
1d493d7d9f
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      pyproject.toml

+ 1 - 1
pyproject.toml

@@ -41,7 +41,7 @@ https = ["urllib3>=1.24.1"]
 pgp = ["gpg"]
 paramiko = ["paramiko"]
 dev = [
-    "ruff==0.11.2",
+    "ruff==0.11.4",
     "mypy==1.15.0"
 ]