Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build(deps-dev): Update ruff requirement from ^0.5.0 to ^0.6.0 (#166)
Updates the requirements on [ruff](https://github.com/astral-sh/ruff) to permit the latest version. <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.6.0</h2> <h2>Release Notes</h2> <p>Check out the <a href="https://astral.sh/blog/ruff-v0.6.0">blog post</a> for a migration guide and overview of the changes!</p> <h3>Breaking changes</h3> <p>See also, the "Remapped rules" section which may result in disabled rules.</p> <ul> <li>Lint and format Jupyter Notebook by default (<a href="https://redirect.github.com/astral-sh/ruff/pull/12878">#12878</a>).</li> <li>Detect imports in <code>src</code> layouts by default for <code>isort</code> rules (<a href="https://redirect.github.com/astral-sh/ruff/pull/12848">#12848</a>)</li> <li>The pytest rules <code>PT001</code> and <code>PT023</code> now default to omitting the decorator parentheses when there are no arguments (<a href="https://redirect.github.com/astral-sh/ruff/pull/12838">#12838</a>).</li> </ul> <h3>Deprecations</h3> <p>The following rules are now deprecated:</p> <ul> <li><a href="https://docs.astral.sh/ruff/rules/pytest-missing-fixture-name-underscore/"><code>pytest-missing-fixture-name-underscore</code></a> (<code>PT004</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/pytest-incorrect-fixture-name-underscore/"><code>pytest-incorrect-fixture-name-underscore</code></a> (<code>PT005</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/unpacked-list-comprehension/"><code>unpacked-list-comprehension</code></a> (<code>UP027</code>)</li> </ul> <h3>Remapped rules</h3> <p>The following rules have been remapped to new rule codes:</p> <ul> <li><a href="https://docs.astral.sh/ruff/rules/unnecessary-dict-comprehension-for-iterable/"><code>unnecessary-dict-comprehension-for-iterable</code></a>: <code>RUF025</code> to <code>C420</code></li> </ul> <h3>Stabilization</h3> <p>The following rules have been stabilized and are no longer in preview:</p> <ul> <li><a href="https://docs.astral.sh/ruff/rules/singledispatch-method/"><code>singledispatch-method</code></a> (<code>PLE1519</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/singledispatchmethod-function/"><code>singledispatchmethod-function</code></a> (<code>PLE1520</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/bad-staticmethod-argument/"><code>bad-staticmethod-argument</code></a> (<code>PLW0211</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/if-stmt-min-max/"><code>if-stmt-min-max</code></a> (<code>PLR1730</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/invalid-bytes-return-type/"><code>invalid-bytes-return-type</code></a> (<code>PLE0308</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/invalid-hash-return-type/"><code>invalid-hash-return-type</code></a> (<code>PLE0309</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/invalid-index-return-type/"><code>invalid-index-return-type</code></a> (<code>PLE0305</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/invalid-length-return-type/"><code>invalid-length-return-type</code></a> (<code>E303</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/self-or-cls-assignment/"><code>self-or-cls-assignment</code></a> (<code>PLW0642</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/byte-string-usage/"><code>byte-string-usage</code></a> (<code>PYI057</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/duplicate-literal-member/"><code>duplicate-literal-member</code></a> (<code>PYI062</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/redirected-noqa/"><code>redirected-noqa</code></a> (<code>RUF101</code>)</li> </ul> <p>The following behaviors have been stabilized:</p> <ul> <li><a href="https://docs.astral.sh/ruff/rules/cancel-scope-no-checkpoint/"><code>cancel-scope-no-checkpoint</code></a> (<code>ASYNC100</code>): Support <code>asyncio</code> and <code>anyio</code> context mangers.</li> <li><a href="https://docs.astral.sh/ruff/rules/async-function-with-timeout/"><code>async-function-with-timeout</code></a> (<code>ASYNC109</code>): Support <code>asyncio</code> and <code>anyio</code> context mangers.</li> <li><a href="https://docs.astral.sh/ruff/rules/async-busy-wait/"><code>async-busy-wait</code></a> (<code>ASYNC110</code>): Support <code>asyncio</code> and <code>anyio</code> context mangers.</li> <li><a href="https://docs.astral.sh/ruff/rules/async-zero-sleep/"><code>async-zero-sleep</code></a> (<code>ASYNC115</code>): Support <code>anyio</code> context mangers.</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.6.0</h2> <p>Check out the <a href="https://astral.sh/blog/ruff-v0.6.0">blog post</a> for a migration guide and overview of the changes!</p> <h3>Breaking changes</h3> <p>See also, the "Remapped rules" section which may result in disabled rules.</p> <ul> <li>Lint and format Jupyter Notebook by default (<a href="https://redirect.github.com/astral-sh/ruff/pull/12878">#12878</a>).</li> <li>Detect imports in <code>src</code> layouts by default for <code>isort</code> rules (<a href="https://redirect.github.com/astral-sh/ruff/pull/12848">#12848</a>)</li> <li>The pytest rules <code>PT001</code> and <code>PT023</code> now default to omitting the decorator parentheses when there are no arguments (<a href="https://redirect.github.com/astral-sh/ruff/pull/12838">#12838</a>).</li> </ul> <h3>Deprecations</h3> <p>The following rules are now deprecated:</p> <ul> <li><a href="https://docs.astral.sh/ruff/rules/pytest-missing-fixture-name-underscore/"><code>pytest-missing-fixture-name-underscore</code></a> (<code>PT004</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/pytest-incorrect-fixture-name-underscore/"><code>pytest-incorrect-fixture-name-underscore</code></a> (<code>PT005</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/unpacked-list-comprehension/"><code>unpacked-list-comprehension</code></a> (<code>UP027</code>)</li> </ul> <h3>Remapped rules</h3> <p>The following rules have been remapped to new rule codes:</p> <ul> <li><a href="https://docs.astral.sh/ruff/rules/unnecessary-dict-comprehension-for-iterable/"><code>unnecessary-dict-comprehension-for-iterable</code></a>: <code>RUF025</code> to <code>C420</code></li> </ul> <h3>Stabilization</h3> <p>The following rules have been stabilized and are no longer in preview:</p> <ul> <li><a href="https://docs.astral.sh/ruff/rules/singledispatch-method/"><code>singledispatch-method</code></a> (<code>PLE1519</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/singledispatchmethod-function/"><code>singledispatchmethod-function</code></a> (<code>PLE1520</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/bad-staticmethod-argument/"><code>bad-staticmethod-argument</code></a> (<code>PLW0211</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/if-stmt-min-max/"><code>if-stmt-min-max</code></a> (<code>PLR1730</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/invalid-bytes-return-type/"><code>invalid-bytes-return-type</code></a> (<code>PLE0308</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/invalid-hash-return-type/"><code>invalid-hash-return-type</code></a> (<code>PLE0309</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/invalid-index-return-type/"><code>invalid-index-return-type</code></a> (<code>PLE0305</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/invalid-length-return-type/"><code>invalid-length-return-type</code></a> (<code>E303</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/self-or-cls-assignment/"><code>self-or-cls-assignment</code></a> (<code>PLW0642</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/byte-string-usage/"><code>byte-string-usage</code></a> (<code>PYI057</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/duplicate-literal-member/"><code>duplicate-literal-member</code></a> (<code>PYI062</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/redirected-noqa/"><code>redirected-noqa</code></a> (<code>RUF101</code>)</li> </ul> <p>The following behaviors have been stabilized:</p> <ul> <li><a href="https://docs.astral.sh/ruff/rules/cancel-scope-no-checkpoint/"><code>cancel-scope-no-checkpoint</code></a> (<code>ASYNC100</code>): Support <code>asyncio</code> and <code>anyio</code> context mangers.</li> <li><a href="https://docs.astral.sh/ruff/rules/async-function-with-timeout/"><code>async-function-with-timeout</code></a> (<code>ASYNC109</code>): Support <code>asyncio</code> and <code>anyio</code> context mangers.</li> <li><a href="https://docs.astral.sh/ruff/rules/async-busy-wait/"><code>async-busy-wait</code></a> (<code>ASYNC110</code>): Support <code>asyncio</code> and <code>anyio</code> context mangers.</li> <li><a href="https://docs.astral.sh/ruff/rules/async-zero-sleep/"><code>async-zero-sleep</code></a> (<code>ASYNC115</code>): Support <code>anyio</code> context mangers.</li> <li><a href="https://docs.astral.sh/ruff/rules/long-sleep-not-forever/"><code>long-sleep-not-forever</code></a> (<code>ASYNC116</code>): Support <code>anyio</code> context mangers.</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/b9da31610a514ffa2100226a0515189a127e8cc2"><code>b9da316</code></a> Bump version to 0.6 (<a href="https://redirect.github.com/astral-sh/ruff/issues/12894">#12894</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/ac7b1770e2540c5e4f3f4b9dbda6593cc67a6b9e"><code>ac7b177</code></a> Sync vendored typeshed stubs (<a href="https://redirect.github.com/astral-sh/ruff/issues/12899">#12899</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/e4c2859c0f8908c70618603b8858fdd781e32b21"><code>e4c2859</code></a> [<code>flake8-async</code>] Do not lint yield in context manager `cancel-scope-no-checkp...</li> <li><a href="https://github.com/astral-sh/ruff/commit/6dcd74311179134b03ad95ec9eacd9f149f7077d"><code>6dcd743</code></a> [<code>flake8-comprehensions</code>] Do not lint <code>async for</code> comprehensions in `unnecess...</li> <li><a href="https://github.com/astral-sh/ruff/commit/73160dc8b68428de19f8ee599e224455f49886e4"><code>73160dc</code></a> Stabilize support for Jupyter Notebooks (<a href="https://redirect.github.com/astral-sh/ruff/issues/12878">#12878</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/15aa5a6d576014c8687c995976d5b1966e87f4be"><code>15aa5a6</code></a> Detect imports in <code>src</code> layouts by default (<a href="https://redirect.github.com/astral-sh/ruff/issues/12848">#12848</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/33512a424998aecf54261a4541fc47481ac2be7c"><code>33512a4</code></a> Stabilise <code>redirected-noqa</code> (<code>RUF101</code>) (<a href="https://redirect.github.com/astral-sh/ruff/issues/12869">#12869</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/d8ebb035911a62b2856a116b7a0d71d27b9df694"><code>d8ebb03</code></a> Improve the error message for PLW0642 (<a href="https://redirect.github.com/astral-sh/ruff/issues/12866">#12866</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/2e211c5c22cb9c8e9a4c19a3eade15c245e1860d"><code>2e211c5</code></a> Change default for PT001 and PT023 (<a href="https://redirect.github.com/astral-sh/ruff/issues/12838">#12838</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/9fd8aaaf29bf464ed93a89b47e40bac5ce9ce493"><code>9fd8aaa</code></a> Stabilize two <code>flake8-pyi</code> rules (<a href="https://redirect.github.com/astral-sh/ruff/issues/12860">#12860</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/0.5.0...0.6.0">compare view</a></li> </ul> </details> <br /> 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