Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump ruff from 0.7.2 to 0.7.3 (#441)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.7.2 to 0.7.3. <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.3</h2> <h2>Release Notes</h2> <h3>Preview features</h3> <ul> <li>Formatter: Disallow single-line implicit concatenated strings (<a href="https://redirect.github.com/astral-sh/ruff/pull/13928">#13928</a>)</li> <li>[<code>flake8-pyi</code>] Include all Python file types for <code>PYI006</code> and <code>PYI066</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/14059">#14059</a>)</li> <li>[<code>flake8-simplify</code>] Implement <code>split-of-static-string</code> (<code>SIM905</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14008">#14008</a>)</li> <li>[<code>refurb</code>] Implement <code>subclass-builtin</code> (<code>FURB189</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14105">#14105</a>)</li> <li>[<code>ruff</code>] Improve diagnostic messages and docs (<code>RUF031</code>, <code>RUF032</code>, <code>RUF034</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14068">#14068</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>Detect items that hash to same value in duplicate sets (<code>B033</code>, <code>PLC0208</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14064">#14064</a>)</li> <li>[<code>eradicate</code>] Better detection of IntelliJ language injection comments (<code>ERA001</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14094">#14094</a>)</li> <li>[<code>flake8-pyi</code>] Add autofix for <code>docstring-in-stub</code> (<code>PYI021</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14150">#14150</a>)</li> <li>[<code>flake8-pyi</code>] Update <code>duplicate-literal-member</code> (<code>PYI062</code>) to alawys provide an autofix (<a href="https://redirect.github.com/astral-sh/ruff/pull/14188">#14188</a>)</li> <li>[<code>pyflakes</code>] Detect items that hash to same value in duplicate dictionaries (<code>F601</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14065">#14065</a>)</li> <li>[<code>ruff</code>] Fix false positive for decorators (<code>RUF028</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14061">#14061</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Avoid parsing joint rule codes as distinct codes in <code># noqa</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12809">#12809</a>)</li> <li>[<code>eradicate</code>] ignore <code># language=</code> in commented-out-code rule (ERA001) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14069">#14069</a>)</li> <li>[<code>flake8-bugbear</code>] - do not run <code>mutable-argument-default</code> on stubs (<code>B006</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14058">#14058</a>)</li> <li>[<code>flake8-builtins</code>] Skip lambda expressions in <code>builtin-argument-shadowing (A002)</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/14144">#14144</a>)</li> <li>[<code>flake8-comprehension</code>] Also remove trailing comma while fixing <code>C409</code> and <code>C419</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/14097">#14097</a>)</li> <li>[<code>flake8-simplify</code>] Allow <code>open</code> without context manager in <code>return</code> statement (<code>SIM115</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14066">#14066</a>)</li> <li>[<code>pylint</code>] Respect hash-equivalent literals in <code>iteration-over-set</code> (<code>PLC0208</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14063">#14063</a>)</li> <li>[<code>pylint</code>] Update known dunder methods for Python 3.13 (<code>PLW3201</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14146">#14146</a>)</li> <li>[<code>pyupgrade</code>] - ignore kwarg unpacking for <code>UP044</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/14053">#14053</a>)</li> <li>[<code>refurb</code>] Parse more exotic decimal strings in <code>verbose-decimal-constructor</code> (<code>FURB157</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14098">#14098</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Add links to missing related options within rule documentations (<a href="https://redirect.github.com/astral-sh/ruff/pull/13971">#13971</a>)</li> <li>Add rule short code to mkdocs tags to allow searching via rule codes (<a href="https://redirect.github.com/astral-sh/ruff/pull/14040">#14040</a>)</li> </ul> <h2>Install ruff 0.7.3</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.3/ruff-installer.sh | sh </code></pre> <h3>Install prebuilt binaries via powershell script</h3> <pre lang="sh"><code>powershell -ExecutionPolicy ByPass -c "irm https://github.com/astral-sh/ruff/releases/download/0.7.3/ruff-installer.ps1 | iex" </tr></table> </code></pre> </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.3</h2> <h3>Preview features</h3> <ul> <li>Formatter: Disallow single-line implicit concatenated strings (<a href="https://redirect.github.com/astral-sh/ruff/pull/13928">#13928</a>)</li> <li>[<code>flake8-pyi</code>] Include all Python file types for <code>PYI006</code> and <code>PYI066</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/14059">#14059</a>)</li> <li>[<code>flake8-simplify</code>] Implement <code>split-of-static-string</code> (<code>SIM905</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14008">#14008</a>)</li> <li>[<code>refurb</code>] Implement <code>subclass-builtin</code> (<code>FURB189</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14105">#14105</a>)</li> <li>[<code>ruff</code>] Improve diagnostic messages and docs (<code>RUF031</code>, <code>RUF032</code>, <code>RUF034</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14068">#14068</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>Detect items that hash to same value in duplicate sets (<code>B033</code>, <code>PLC0208</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14064">#14064</a>)</li> <li>[<code>eradicate</code>] Better detection of IntelliJ language injection comments (<code>ERA001</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14094">#14094</a>)</li> <li>[<code>flake8-pyi</code>] Add autofix for <code>docstring-in-stub</code> (<code>PYI021</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14150">#14150</a>)</li> <li>[<code>flake8-pyi</code>] Update <code>duplicate-literal-member</code> (<code>PYI062</code>) to alawys provide an autofix (<a href="https://redirect.github.com/astral-sh/ruff/pull/14188">#14188</a>)</li> <li>[<code>pyflakes</code>] Detect items that hash to same value in duplicate dictionaries (<code>F601</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14065">#14065</a>)</li> <li>[<code>ruff</code>] Fix false positive for decorators (<code>RUF028</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14061">#14061</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Avoid parsing joint rule codes as distinct codes in <code># noqa</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12809">#12809</a>)</li> <li>[<code>eradicate</code>] ignore <code># language=</code> in commented-out-code rule (ERA001) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14069">#14069</a>)</li> <li>[<code>flake8-bugbear</code>] - do not run <code>mutable-argument-default</code> on stubs (<code>B006</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14058">#14058</a>)</li> <li>[<code>flake8-builtins</code>] Skip lambda expressions in <code>builtin-argument-shadowing (A002)</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/14144">#14144</a>)</li> <li>[<code>flake8-comprehension</code>] Also remove trailing comma while fixing <code>C409</code> and <code>C419</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/14097">#14097</a>)</li> <li>[<code>flake8-simplify</code>] Allow <code>open</code> without context manager in <code>return</code> statement (<code>SIM115</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14066">#14066</a>)</li> <li>[<code>pylint</code>] Respect hash-equivalent literals in <code>iteration-over-set</code> (<code>PLC0208</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14063">#14063</a>)</li> <li>[<code>pylint</code>] Update known dunder methods for Python 3.13 (<code>PLW3201</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14146">#14146</a>)</li> <li>[<code>pyupgrade</code>] - ignore kwarg unpacking for <code>UP044</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/14053">#14053</a>)</li> <li>[<code>refurb</code>] Parse more exotic decimal strings in <code>verbose-decimal-constructor</code> (<code>FURB157</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14098">#14098</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Add links to missing related options within rule documentations (<a href="https://redirect.github.com/astral-sh/ruff/pull/13971">#13971</a>)</li> <li>Add rule short code to mkdocs tags to allow searching via rule codes (<a href="https://redirect.github.com/astral-sh/ruff/pull/14040">#14040</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/astral-sh/ruff/commit/fbf140a665629ce31191e56918bec6a724a24617"><code>fbf140a</code></a> Bump version to 0.7.3 (<a href="https://redirect.github.com/astral-sh/ruff/issues/14197">#14197</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/670f9585258e81539326f0c4a524f1edc6b1df4f"><code>670f958</code></a> [red-knot] Fix intersection simplification for <code>~Any</code>/<code>~Unknown</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/14195">#14195</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/fed35a25e86f8eb86fdeefe43294847ffb4dec34"><code>fed35a2</code></a> [red-knot] Fix <code>is_assignable_to</code> for unions (<a href="https://redirect.github.com/astral-sh/ruff/issues/14196">#14196</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/d1ef418bb01ee6eb2289c5d5b42a23dcd49ad59b"><code>d1ef418</code></a> Docs: tweak rules documentation (<a href="https://redirect.github.com/astral-sh/ruff/issues/14180">#14180</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/272d24bf3e4dabe59d2ec49f505e8fa4e00ba798"><code>272d24b</code></a> [<code>flake8-pyi</code>] Add a fix for <code>duplicate-literal-member</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/14188">#14188</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/2624249219af9c029511fec36669430b9b124922"><code>2624249</code></a> [red-knot] Minor: fix <code>Literal[True] <: int</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/14177">#14177</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/4b08d17088dfcbdc0b4e67a13c6a837886459947"><code>4b08d17</code></a> [red-knot] Add a new <code>Type::KnownInstanceType</code> variant (<a href="https://redirect.github.com/astral-sh/ruff/issues/14155">#14155</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/5b6169b02de923d1e549357e86f729224626f4aa"><code>5b6169b</code></a> [red-knot] Minor fix in intersection type comment (<a href="https://redirect.github.com/astral-sh/ruff/issues/14176">#14176</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/2040e93add18afe449576258f861599e0c8e74b9"><code>2040e93</code></a> [<code>flake8-logging-format</code>] Fix invalid formatting value in docs of `logging-ex...</li> <li><a href="https://github.com/astral-sh/ruff/commit/794eb886e47c9f8af1c3740fee29edd70c344bfa"><code>794eb88</code></a> [<code>flake8-bandit</code>] Typo in docs <code>suspicious-pickle-import</code> (<code>S403</code>) (<a href="https://redirect.github.com/astral-sh/ruff/issues/14175">#14175</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/0.7.2...0.7.3">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.7.2&new-version=0.7.3)](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