This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
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): Bump ruff from 0.5.5 to 0.5.6 (#1160)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.5.5 to 0.5.6. <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.5.6</h2> <h2>Release Notes</h2> <p>Ruff 0.5.6 automatically enables linting and formatting of notebooks in <em>preview mode</em>. You can opt-out of this behavior by adding <code>*.ipynb</code> to the <code>extend-exclude</code> setting.</p> <pre lang="toml"><code>[tool.ruff] extend-exclude = ["*.ipynb"] </code></pre> <h3>Preview features</h3> <ul> <li>Enable notebooks by default in preview mode (<a href="https://redirect.github.com/astral-sh/ruff/pull/12621">#12621</a>)</li> <li>[<code>flake8-builtins</code>] Implement import, lambda, and module shadowing (<a href="https://redirect.github.com/astral-sh/ruff/pull/12546">#12546</a>)</li> <li>[<code>pydoclint</code>] Add <code>docstring-missing-returns</code> (<code>DOC201</code>) and <code>docstring-extraneous-returns</code> (<code>DOC202</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12485">#12485</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-return</code>] Exempt cached properties and other property-like decorators from explicit return rule (<code>RET501</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12563">#12563</a>)</li> </ul> <h3>Server</h3> <ul> <li>Make server panic hook more error resilient (<a href="https://redirect.github.com/astral-sh/ruff/pull/12610">#12610</a>)</li> <li>Use <code>$/logTrace</code> for server trace logs in Zed and VS Code (<a href="https://redirect.github.com/astral-sh/ruff/pull/12564">#12564</a>)</li> <li>Keep track of deleted cells for reorder change request (<a href="https://redirect.github.com/astral-sh/ruff/pull/12575">#12575</a>)</li> </ul> <h3>Configuration</h3> <ul> <li>[<code>flake8-implicit-str-concat</code>] Always allow explicit multi-line concatenations when implicit concatenations are banned (<a href="https://redirect.github.com/astral-sh/ruff/pull/12532">#12532</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>flake8-async</code>] Avoid flagging <code>asyncio.timeout</code>s as unused when the context manager includes <code>asyncio.TaskGroup</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12605">#12605</a>)</li> <li>[<code>flake8-slots</code>] Avoid recommending <code>__slots__</code> for classes that inherit from more than <code>namedtuple</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12531">#12531</a>)</li> <li>[<code>isort</code>] Avoid marking required imports as unused (<a href="https://redirect.github.com/astral-sh/ruff/pull/12537">#12537</a>)</li> <li>[<code>isort</code>] Preserve trailing inline comments on import-from statements (<a href="https://redirect.github.com/astral-sh/ruff/pull/12498">#12498</a>)</li> <li>[<code>pycodestyle</code>] Add newlines before comments (<code>E305</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12606">#12606</a>)</li> <li>[<code>pycodestyle</code>] Don't attach comments with mismatched indents (<a href="https://redirect.github.com/astral-sh/ruff/pull/12604">#12604</a>)</li> <li>[<code>pyflakes</code>] Fix preview-mode bugs in <code>F401</code> when attempting to autofix unused first-party submodule imports in an <code>__init__.py</code> file (<a href="https://redirect.github.com/astral-sh/ruff/pull/12569">#12569</a>)</li> <li>[<code>pylint</code>] Respect start index in <code>unnecessary-list-index-lookup</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12603">#12603</a>)</li> <li>[<code>pyupgrade</code>] Avoid recommending no-argument super in <code>slots=True</code> dataclasses (<a href="https://redirect.github.com/astral-sh/ruff/pull/12530">#12530</a>)</li> <li>[<code>pyupgrade</code>] Use colon rather than dot formatting for integer-only types (<a href="https://redirect.github.com/astral-sh/ruff/pull/12534">#12534</a>)</li> <li>Fix NFKC normalization bug when removing unused imports (<a href="https://redirect.github.com/astral-sh/ruff/pull/12571">#12571</a>)</li> </ul> <h3>Other changes</h3> <ul> <li>Consider more stdlib decorators to be property-like (<a href="https://redirect.github.com/astral-sh/ruff/pull/12583">#12583</a>)</li> <li>Improve handling of metaclasses in various linter rules (<a href="https://redirect.github.com/astral-sh/ruff/pull/12579">#12579</a>)</li> <li>Improve consistency between linter rules in determining whether a function is property (<a href="https://redirect.github.com/astral-sh/ruff/pull/12581">#12581</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.5.6</h2> <p>Ruff 0.5.6 automatically enables linting and formatting of notebooks in <em>preview mode</em>. You can opt-out of this behavior by adding <code>*.ipynb</code> to the <code>extend-exclude</code> setting.</p> <pre lang="toml"><code>[tool.ruff] extend-exclude = ["*.ipynb"] </code></pre> <h3>Preview features</h3> <ul> <li>Enable notebooks by default in preview mode (<a href="https://redirect.github.com/astral-sh/ruff/pull/12621">#12621</a>)</li> <li>[<code>flake8-builtins</code>] Implement import, lambda, and module shadowing (<a href="https://redirect.github.com/astral-sh/ruff/pull/12546">#12546</a>)</li> <li>[<code>pydoclint</code>] Add <code>docstring-missing-returns</code> (<code>DOC201</code>) and <code>docstring-extraneous-returns</code> (<code>DOC202</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12485">#12485</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-return</code>] Exempt cached properties and other property-like decorators from explicit return rule (<code>RET501</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12563">#12563</a>)</li> </ul> <h3>Server</h3> <ul> <li>Make server panic hook more error resilient (<a href="https://redirect.github.com/astral-sh/ruff/pull/12610">#12610</a>)</li> <li>Use <code>$/logTrace</code> for server trace logs in Zed and VS Code (<a href="https://redirect.github.com/astral-sh/ruff/pull/12564">#12564</a>)</li> <li>Keep track of deleted cells for reorder change request (<a href="https://redirect.github.com/astral-sh/ruff/pull/12575">#12575</a>)</li> </ul> <h3>Configuration</h3> <ul> <li>[<code>flake8-implicit-str-concat</code>] Always allow explicit multi-line concatenations when implicit concatenations are banned (<a href="https://redirect.github.com/astral-sh/ruff/pull/12532">#12532</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>flake8-async</code>] Avoid flagging <code>asyncio.timeout</code>s as unused when the context manager includes <code>asyncio.TaskGroup</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12605">#12605</a>)</li> <li>[<code>flake8-slots</code>] Avoid recommending <code>__slots__</code> for classes that inherit from more than <code>namedtuple</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12531">#12531</a>)</li> <li>[<code>isort</code>] Avoid marking required imports as unused (<a href="https://redirect.github.com/astral-sh/ruff/pull/12537">#12537</a>)</li> <li>[<code>isort</code>] Preserve trailing inline comments on import-from statements (<a href="https://redirect.github.com/astral-sh/ruff/pull/12498">#12498</a>)</li> <li>[<code>pycodestyle</code>] Add newlines before comments (<code>E305</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12606">#12606</a>)</li> <li>[<code>pycodestyle</code>] Don't attach comments with mismatched indents (<a href="https://redirect.github.com/astral-sh/ruff/pull/12604">#12604</a>)</li> <li>[<code>pyflakes</code>] Fix preview-mode bugs in <code>F401</code> when attempting to autofix unused first-party submodule imports in an <code>__init__.py</code> file (<a href="https://redirect.github.com/astral-sh/ruff/pull/12569">#12569</a>)</li> <li>[<code>pylint</code>] Respect start index in <code>unnecessary-list-index-lookup</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12603">#12603</a>)</li> <li>[<code>pyupgrade</code>] Avoid recommending no-argument super in <code>slots=True</code> dataclasses (<a href="https://redirect.github.com/astral-sh/ruff/pull/12530">#12530</a>)</li> <li>[<code>pyupgrade</code>] Use colon rather than dot formatting for integer-only types (<a href="https://redirect.github.com/astral-sh/ruff/pull/12534">#12534</a>)</li> <li>Fix NFKC normalization bug when removing unused imports (<a href="https://redirect.github.com/astral-sh/ruff/pull/12571">#12571</a>)</li> </ul> <h3>Other changes</h3> <ul> <li>Consider more stdlib decorators to be property-like (<a href="https://redirect.github.com/astral-sh/ruff/pull/12583">#12583</a>)</li> <li>Improve handling of metaclasses in various linter rules (<a href="https://redirect.github.com/astral-sh/ruff/pull/12579">#12579</a>)</li> <li>Improve consistency between linter rules in determining whether a function is property (<a href="https://redirect.github.com/astral-sh/ruff/pull/12581">#12581</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/astral-sh/ruff/commit/da824ba316bd11de349479aaab06b6ab06560d38"><code>da824ba</code></a> Release Ruff 0.5.6 (<a href="https://redirect.github.com/astral-sh/ruff/issues/12629">#12629</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/012198a1b0f4870902992218c04aac3f07ee76c8"><code>012198a</code></a> Enable notebooks by default in preview mode (<a href="https://redirect.github.com/astral-sh/ruff/issues/12621">#12621</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/fbab04fbe1ea9ab08540c4e6a0b3ab7b9e19d637"><code>fbab04f</code></a> [red-knot] Allow multiple <code>site-packages</code> search paths (<a href="https://redirect.github.com/astral-sh/ruff/issues/12609">#12609</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/9aa43d5f911f5f46b77bf4d9b72b52ad2d4b9e11"><code>9aa43d5</code></a> Separate <code>red_knot</code> into CLI and <code>red_knot_workspace</code> crates (<a href="https://redirect.github.com/astral-sh/ruff/issues/12623">#12623</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/966563c79b2810371728c302fef2e97569ba5ba0"><code>966563c</code></a> Add tests for hard and soft links (<a href="https://redirect.github.com/astral-sh/ruff/issues/12590">#12590</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/27edadec2953d8816a742f32c41695d1b03534c6"><code>27edade</code></a> Make server panic hook more error resilient (<a href="https://redirect.github.com/astral-sh/ruff/issues/12610">#12610</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/2e2b1b460f4de25e630cde69b4b49577bc5134b4"><code>2e2b1b4</code></a> Fix a typo in <code>docs/editors/settings.md</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/12614">#12614</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/a3e67abf4ce7b519152c03ff441424c18e4c18ee"><code>a3e67ab</code></a> Add newlines before comments in E305 (<a href="https://redirect.github.com/astral-sh/ruff/issues/12606">#12606</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/ee0518e8f71cb0bc4d5cc3afc28a54a0bbc78247"><code>ee0518e</code></a> [red-knot] implement attribute of union (<a href="https://redirect.github.com/astral-sh/ruff/issues/12601">#12601</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/d774a3bd48bbf8b697190b7d68251195cdc6c64b"><code>d774a3b</code></a> Avoid unused async when context manager includes <code>TaskGroup</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/12605">#12605</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/0.5.5...0.5.6">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.5.5&new-version=0.5.6)](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