Skip to content

Commit

Permalink
Bump ruff from 0.6.3 to 0.7.2 (#195)
Browse files Browse the repository at this point in the history
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.6.3 to 0.7.2.
<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.7.2</h2>
<h2>Release Notes</h2>
<h3>Preview features</h3>
<ul>
<li>Fix formatting of single with-item with trailing comment (<a
href="https://redirect.github.com/astral-sh/ruff/pull/14005">#14005</a>)</li>
<li>[<code>pyupgrade</code>] Add PEP 646 <code>Unpack</code> conversion
to <code>*</code> with fix (<code>UP044</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13988">#13988</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>Regenerate <code>known_stdlibs.rs</code> with stdlibs 2024.10.25 (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13963">#13963</a>)</li>
<li>[<code>flake8-no-pep420</code>] Skip namespace package enforcement
for PEP 723 scripts (<code>INP001</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13974">#13974</a>)</li>
</ul>
<h3>Server</h3>
<ul>
<li>Fix server panic when undoing an edit (<a
href="https://redirect.github.com/astral-sh/ruff/pull/14010">#14010</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Fix issues in discovering ruff in pip build environments (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13881">#13881</a>)</li>
<li>[<code>flake8-type-checking</code>] Fix false positive for
<code>singledispatchmethod</code> (<code>TCH003</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13941">#13941</a>)</li>
<li>[<code>flake8-type-checking</code>] Treat return type of
<code>singledispatch</code> as runtime-required (<code>TCH003</code>)
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/13957">#13957</a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li>[<code>flake8-simplify</code>] Include caveats of enabling
<code>if-else-block-instead-of-if-exp</code> (<code>SIM108</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/14019">#14019</a>)</li>
</ul>
<h2>Install ruff 0.7.2</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.7.2/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.7.2/ruff-installer.ps1
| iex&quot;
</code></pre>
<h2>Download ruff 0.7.2</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.7.2/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.7.2/ruff-aarch64-apple-darwin.tar.gz.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://github.com/astral-sh/ruff/releases/download/0.7.2/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.7.2/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.7.2/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.7.2/ruff-aarch64-pc-windows-msvc.zip.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://github.com/astral-sh/ruff/releases/download/0.7.2/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.7.2/ruff-i686-pc-windows-msvc.zip.sha256">checksum</a></td>
</tr>
<tr>
<td><a
href="https://github.com/astral-sh/ruff/releases/download/0.7.2/ruff-x86_64-pc-windows-msvc.zip">ruff-x86_64-pc-windows-msvc.zip</a></td>
<td>x64 Windows</td>
<td><a
href="https://github.com/astral-sh/ruff/releases/download/0.7.2/ruff-x86_64-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.7.2</h2>
<h3>Preview features</h3>
<ul>
<li>Fix formatting of single with-item with trailing comment (<a
href="https://redirect.github.com/astral-sh/ruff/pull/14005">#14005</a>)</li>
<li>[<code>pyupgrade</code>] Add PEP 646 <code>Unpack</code> conversion
to <code>*</code> with fix (<code>UP044</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13988">#13988</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>Regenerate <code>known_stdlibs.rs</code> with stdlibs 2024.10.25 (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13963">#13963</a>)</li>
<li>[<code>flake8-no-pep420</code>] Skip namespace package enforcement
for PEP 723 scripts (<code>INP001</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13974">#13974</a>)</li>
</ul>
<h3>Server</h3>
<ul>
<li>Fix server panic when undoing an edit (<a
href="https://redirect.github.com/astral-sh/ruff/pull/14010">#14010</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Fix issues in discovering ruff in pip build environments (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13881">#13881</a>)</li>
<li>[<code>flake8-type-checking</code>] Fix false positive for
<code>singledispatchmethod</code> (<code>TCH003</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13941">#13941</a>)</li>
<li>[<code>flake8-type-checking</code>] Treat return type of
<code>singledispatch</code> as runtime-required (<code>TCH003</code>)
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/13957">#13957</a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li>[<code>flake8-simplify</code>] Include caveats of enabling
<code>if-else-block-instead-of-if-exp</code> (<code>SIM108</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/14019">#14019</a>)</li>
</ul>
<h2>0.7.1</h2>
<h3>Preview features</h3>
<ul>
<li>Fix <code>E221</code> and <code>E222</code> to flag missing or extra
whitespace around <code>==</code> operator (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13890">#13890</a>)</li>
<li>Formatter: Alternate quotes for strings inside f-strings in preview
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/13860">#13860</a>)</li>
<li>Formatter: Join implicit concatenated strings when they fit on a
line (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13663">#13663</a>)</li>
<li>[<code>pylint</code>] Restrict <code>iteration-over-set</code> to
only work on sets of literals (<code>PLC0208</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13731">#13731</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>flake8-type-checking</code>] Support auto-quoting when
annotations contain quotes (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11811">#11811</a>)</li>
</ul>
<h3>Server</h3>
<ul>
<li>Avoid indexing the workspace for single-file mode (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13770">#13770</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Make <code>ARG002</code> compatible with <code>EM101</code> when
raising <code>NotImplementedError</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13714">#13714</a>)</li>
</ul>
<h3>Other changes</h3>
<ul>
<li>Introduce more Docker tags for Ruff (similar to uv) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/13274">#13274</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/11c3b52fd5e8a2f39d3e21faebd76fdbaf3d748b"><code>11c3b52</code></a>
generate using cargo-dist</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/a388e49f38d0f9f0a775b7e693f7a3657e6ef853"><code>a388e49</code></a>
Temporary comment out certain release steps</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/099f077311c637df2866ebbe6407896ff25ffd15"><code>099f077</code></a>
[docs] Add rule short code to mkdocs tags (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14040">#14040</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/85747519113c2447e75668ab2d89c3b498961ea5"><code>8574751</code></a>
Give non-existent files a durability of at least Medium (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14034">#14034</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/ddae741b72b7d9acde3f7a1283470ed34d8aef63"><code>ddae741</code></a>
Switch to <code>uv publish</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14042">#14042</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/5053d2c127559aabced1491401356474d274dd22"><code>5053d2c</code></a>
Doc: markdown link fix (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14041">#14041</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/ef72fd79a71a0fbdcc489fad1e951ca7b2cede5d"><code>ef72fd7</code></a>
Bump version to 0.7.2 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14039">#14039</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/658a51ea1017d221cfb928f7a49527326682c1b9"><code>658a51e</code></a>
Fix typo for static method decorator (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14038">#14038</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/7c2da4f06e7c26712b233d030577812526e2ac72"><code>7c2da4f</code></a>
Sync vendored typeshed stubs (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14030">#14030</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/48fa839c80795b1fbebc8ad9f70a3d76d1167277"><code>48fa839</code></a>
Use named function in incremental red knot benchmark (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14033">#14033</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/0.6.3...0.7.2">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.6.3&new-version=0.7.2)](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>
  • Loading branch information
torbennehmer authored Nov 23, 2024
2 parents 620a053 + 1ebf9f8 commit b09d75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
homeassistant>=2024.9.0
colorlog==6.8.2
pip>=24.1.1,<24.3
ruff==0.6.3
ruff==0.7.2
pye3dc==0.9.2

0 comments on commit b09d75c

Please sign in to comment.