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.3 to 0.7.4 (#123)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.7.3 to 0.7.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.7.4</h2> <h2>Release Notes</h2> <h3>Preview features</h3> <ul> <li>[<code>flake8-datetimez</code>] Detect usages of <code>datetime.max</code>/<code>datetime.min</code> (<code>DTZ901</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14288">#14288</a>)</li> <li>[<code>flake8-logging</code>] Implement <code>root-logger-calls</code> (<code>LOG015</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14302">#14302</a>)</li> <li>[<code>flake8-no-pep420</code>] Detect empty implicit namespace packages (<code>INP001</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14236">#14236</a>)</li> <li>[<code>flake8-pyi</code>] Add "replace with <code>Self</code>" fix (<code>PYI019</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14238">#14238</a>)</li> <li>[<code>perflint</code>] Implement quick-fix for <code>manual-list-comprehension</code> (<code>PERF401</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/13919">#13919</a>)</li> <li>[<code>pylint</code>] Implement <code>shallow-copy-environ</code> (<code>W1507</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14241">#14241</a>)</li> <li>[<code>ruff</code>] Implement <code>none-not-at-end-of-union</code> (<code>RUF036</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14314">#14314</a>)</li> <li>[<code>ruff</code>] Implementation <code>unsafe-markup-call</code> from <code>flake8-markupsafe</code> plugin (<code>RUF035</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14224">#14224</a>)</li> <li>[<code>ruff</code>] Report problems for <code>attrs</code> dataclasses (<code>RUF008</code>, <code>RUF009</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14327">#14327</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-boolean-trap</code>] Exclude dunder methods that define operators (<code>FBT001</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14203">#14203</a>)</li> <li>[<code>flake8-pyi</code>] Add "replace with <code>Self</code>" fix (<code>PYI034</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14217">#14217</a>)</li> <li>[<code>flake8-pyi</code>] Always autofix <code>duplicate-union-members</code> (<code>PYI016</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14270">#14270</a>)</li> <li>[<code>flake8-pyi</code>] Improve autofix for nested and mixed type unions for <code>unnecessary-type-union</code> (<code>PYI055</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14272">#14272</a>)</li> <li>[<code>flake8-pyi</code>] Mark fix as unsafe when type annotation contains comments for <code>duplicate-literal-member</code> (<code>PYI062</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14268">#14268</a>)</li> </ul> <h3>Server</h3> <ul> <li>Use the current working directory to resolve settings from <code>ruff.configuration</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/14352">#14352</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Avoid conflicts between <code>PLC014</code> (<code>useless-import-alias</code>) and <code>I002</code> (<code>missing-required-import</code>) by considering <code>lint.isort.required-imports</code> for <code>PLC014</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/14287">#14287</a>)</li> <li>[<code>flake8-type-checking</code>] Skip quoting annotation if it becomes invalid syntax (<code>TCH001</code>)</li> <li>[<code>flake8-pyi</code>] Avoid using <code>typing.Self</code> in stub files pre-Python 3.11 (<code>PYI034</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14230">#14230</a>)</li> <li>[<code>flake8-pytest-style</code>] Flag <code>pytest.raises</code> call with keyword argument <code>expected_exception</code> (<code>PT011</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14298">#14298</a>)</li> <li>[<code>flake8-simplify</code>] Infer "unknown" truthiness for literal iterables whose items are all unpacks (<code>SIM222</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14263">#14263</a>)</li> <li>[<code>flake8-type-checking</code>] Fix false positives for <code>typing.Annotated</code> (<code>TCH001</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14311">#14311</a>)</li> <li>[<code>pylint</code>] Allow <code>await</code> at the top-level scope of a notebook (<code>PLE1142</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14225">#14225</a>)</li> <li>[<code>pylint</code>] Fix miscellaneous issues in <code>await-outside-async</code> detection (<code>PLE1142</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14218">#14218</a>)</li> <li>[<code>pyupgrade</code>] Avoid applying PEP 646 rewrites in invalid contexts (<code>UP044</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14234">#14234</a>)</li> <li>[<code>pyupgrade</code>] Detect permutations in redundant open modes (<code>UP015</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14255">#14255</a>)</li> <li>[<code>refurb</code>] Avoid triggering <code>hardcoded-string-charset</code> for reordered sets (<code>FURB156</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14233">#14233</a>)</li> <li>[<code>refurb</code>] Further special cases added to <code>verbose-decimal-constructor</code> (<code>FURB157</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14216">#14216</a>)</li> <li>[<code>refurb</code>] Use <code>UserString</code> instead of non-existent <code>UserStr</code> (<code>FURB189</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14209">#14209</a>)</li> <li>[<code>ruff</code>] Avoid treating lowercase letters as <code># noqa</code> codes (<code>RUF100</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14229">#14229</a>)</li> <li>[<code>ruff</code>] Do not report when <code>Optional</code> has no type arguments (<code>RUF013</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14181">#14181</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Add "Notebook behavior" section for <code>F704</code>, <code>PLE1142</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/14266">#14266</a>)</li> <li>Document comment policy around fix safety (<a href="https://redirect.github.com/astral-sh/ruff/pull/14300">#14300</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.7.4</h2> <h3>Preview features</h3> <ul> <li>[<code>flake8-datetimez</code>] Detect usages of <code>datetime.max</code>/<code>datetime.min</code> (<code>DTZ901</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14288">#14288</a>)</li> <li>[<code>flake8-logging</code>] Implement <code>root-logger-calls</code> (<code>LOG015</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14302">#14302</a>)</li> <li>[<code>flake8-no-pep420</code>] Detect empty implicit namespace packages (<code>INP001</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14236">#14236</a>)</li> <li>[<code>flake8-pyi</code>] Add "replace with <code>Self</code>" fix (<code>PYI019</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14238">#14238</a>)</li> <li>[<code>perflint</code>] Implement quick-fix for <code>manual-list-comprehension</code> (<code>PERF401</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/13919">#13919</a>)</li> <li>[<code>pylint</code>] Implement <code>shallow-copy-environ</code> (<code>W1507</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14241">#14241</a>)</li> <li>[<code>ruff</code>] Implement <code>none-not-at-end-of-union</code> (<code>RUF036</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14314">#14314</a>)</li> <li>[<code>ruff</code>] Implementation <code>unsafe-markup-call</code> from <code>flake8-markupsafe</code> plugin (<code>RUF035</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14224">#14224</a>)</li> <li>[<code>ruff</code>] Report problems for <code>attrs</code> dataclasses (<code>RUF008</code>, <code>RUF009</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14327">#14327</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-boolean-trap</code>] Exclude dunder methods that define operators (<code>FBT001</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14203">#14203</a>)</li> <li>[<code>flake8-pyi</code>] Add "replace with <code>Self</code>" fix (<code>PYI034</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14217">#14217</a>)</li> <li>[<code>flake8-pyi</code>] Always autofix <code>duplicate-union-members</code> (<code>PYI016</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14270">#14270</a>)</li> <li>[<code>flake8-pyi</code>] Improve autofix for nested and mixed type unions for <code>unnecessary-type-union</code> (<code>PYI055</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14272">#14272</a>)</li> <li>[<code>flake8-pyi</code>] Mark fix as unsafe when type annotation contains comments for <code>duplicate-literal-member</code> (<code>PYI062</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14268">#14268</a>)</li> </ul> <h3>Server</h3> <ul> <li>Use the current working directory to resolve settings from <code>ruff.configuration</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/14352">#14352</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Avoid conflicts between <code>PLC014</code> (<code>useless-import-alias</code>) and <code>I002</code> (<code>missing-required-import</code>) by considering <code>lint.isort.required-imports</code> for <code>PLC014</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/14287">#14287</a>)</li> <li>[<code>flake8-type-checking</code>] Skip quoting annotation if it becomes invalid syntax (<code>TCH001</code>)</li> <li>[<code>flake8-pyi</code>] Avoid using <code>typing.Self</code> in stub files pre-Python 3.11 (<code>PYI034</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14230">#14230</a>)</li> <li>[<code>flake8-pytest-style</code>] Flag <code>pytest.raises</code> call with keyword argument <code>expected_exception</code> (<code>PT011</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14298">#14298</a>)</li> <li>[<code>flake8-simplify</code>] Infer "unknown" truthiness for literal iterables whose items are all unpacks (<code>SIM222</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14263">#14263</a>)</li> <li>[<code>flake8-type-checking</code>] Fix false positives for <code>typing.Annotated</code> (<code>TCH001</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14311">#14311</a>)</li> <li>[<code>pylint</code>] Allow <code>await</code> at the top-level scope of a notebook (<code>PLE1142</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14225">#14225</a>)</li> <li>[<code>pylint</code>] Fix miscellaneous issues in <code>await-outside-async</code> detection (<code>PLE1142</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14218">#14218</a>)</li> <li>[<code>pyupgrade</code>] Avoid applying PEP 646 rewrites in invalid contexts (<code>UP044</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14234">#14234</a>)</li> <li>[<code>pyupgrade</code>] Detect permutations in redundant open modes (<code>UP015</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14255">#14255</a>)</li> <li>[<code>refurb</code>] Avoid triggering <code>hardcoded-string-charset</code> for reordered sets (<code>FURB156</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14233">#14233</a>)</li> <li>[<code>refurb</code>] Further special cases added to <code>verbose-decimal-constructor</code> (<code>FURB157</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14216">#14216</a>)</li> <li>[<code>refurb</code>] Use <code>UserString</code> instead of non-existent <code>UserStr</code> (<code>FURB189</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14209">#14209</a>)</li> <li>[<code>ruff</code>] Avoid treating lowercase letters as <code># noqa</code> codes (<code>RUF100</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14229">#14229</a>)</li> <li>[<code>ruff</code>] Do not report when <code>Optional</code> has no type arguments (<code>RUF013</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/14181">#14181</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Add "Notebook behavior" section for <code>F704</code>, <code>PLE1142</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/14266">#14266</a>)</li> <li>Document comment policy around fix safety (<a href="https://redirect.github.com/astral-sh/ruff/pull/14300">#14300</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/astral-sh/ruff/commit/ed7b98cf9b5ec915bc196a2cab84d4f735d77693"><code>ed7b98c</code></a> Bump version to 0.7.4 (<a href="https://redirect.github.com/astral-sh/ruff/issues/14358">#14358</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/6591775cd97db4216c3786d12f6f1b79dee26587"><code>6591775</code></a> [<code>flake8-type-checking</code>] Skip quoting annotation if it becomes invalid syntax...</li> <li><a href="https://github.com/astral-sh/ruff/commit/1f82731856eb0f199c8b11f8e06c32020a6a9738"><code>1f82731</code></a> Use CWD to resolve settings from <code>ruff.configuration</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/14352">#14352</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/874da9c400e7163aae4cf6efc135ba1d370b37a5"><code>874da9c</code></a> [red-knot] Display raw characters for string literal (<a href="https://redirect.github.com/astral-sh/ruff/issues/14351">#14351</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/375cead202d69e04658c632d0ea886240aef0743"><code>375cead</code></a> Sync vendored typeshed stubs (<a href="https://redirect.github.com/astral-sh/ruff/issues/14350">#14350</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/9ec690b8f8758e5fb958f8cc40e803eca315861f"><code>9ec690b</code></a> [red-knot] Add support for string annotations (<a href="https://redirect.github.com/astral-sh/ruff/issues/14151">#14151</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/a48d779c4e0eb6d9e7bfa11a6226272e4d405bb8"><code>a48d779</code></a> [red-knot] function signature representation (<a href="https://redirect.github.com/astral-sh/ruff/issues/14304">#14304</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/ba6c7f6897df6d8020c6b393d1d2f51963fee2b2"><code>ba6c7f6</code></a> [<code>pylint</code>] Remove check for dot in alias name in `useless-import-alias (PLC04...</li> <li><a href="https://github.com/astral-sh/ruff/commit/8095ff0e55beb55ddca8f853d04aa4154ef2cf93"><code>8095ff0</code></a> enforce required imports even with useless alias (<a href="https://redirect.github.com/astral-sh/ruff/issues/14287">#14287</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/24cd592a1d6d5ad8ec4e0cb0e836f94771d12afd"><code>24cd592</code></a> Avoid module lookup for known classes when possible (<a href="https://redirect.github.com/astral-sh/ruff/issues/14343">#14343</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/0.7.3...0.7.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.7.3&new-version=0.7.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] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information