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.6.0 to 0.6.1 (#428)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.6.0 to 0.6.1. <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.1</h2> <h2>Release Notes</h2> <p>This is a hotfix release to address an issue with <code>ruff-pre-commit</code>. In v0.6, Ruff changed its behavior to lint and format Jupyter notebooks by default; however, due to an oversight, these files were still excluded by default if Ruff was run via pre-commit, leading to inconsistent behavior. This has <a href="https://redirect.github.com/astral-sh/ruff-pre-commit/pull/96">now been fixed</a>.</p> <h3>Preview features</h3> <ul> <li>[<code>fastapi</code>] Implement <code>fast-api-unused-path-parameter</code> (<code>FAST003</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12638">#12638</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>pylint</code>] Rename <code>too-many-positional</code> to <code>too-many-positional-arguments</code> (<code>R0917</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12905">#12905</a>)</li> </ul> <h3>Server</h3> <ul> <li>Fix crash when applying "fix-all" code-action to notebook cells (<a href="https://redirect.github.com/astral-sh/ruff/pull/12929">#12929</a>)</li> </ul> <h3>Other changes</h3> <ul> <li>[<code>flake8-naming</code>]: Respect import conventions (<code>N817</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12922">#12922</a>)</li> </ul> <h2>Contributors</h2> <ul> <li><a href="https://github.com/AlexWaygood"><code>@AlexWaygood</code></a></li> <li><a href="https://github.com/JonathanPlasse"><code>@JonathanPlasse</code></a></li> <li><a href="https://github.com/Matthieu-LAURENT39"><code>@Matthieu-LAURENT39</code></a></li> <li><a href="https://github.com/MichaReiser"><code>@MichaReiser</code></a></li> <li><a href="https://github.com/carljm"><code>@carljm</code></a></li> <li><a href="https://github.com/dhruvmanila"><code>@dhruvmanila</code></a></li> </ul> <h2>Install ruff 0.6.1</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.6.1/ruff-installer.sh | sh </code></pre> <h3>Install prebuilt binaries via powershell script</h3> <pre lang="sh"><code>powershell -c "irm https://github.com/astral-sh/ruff/releases/download/0.6.1/ruff-installer.ps1 | iex" </code></pre> <h2>Download ruff 0.6.1</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.6.1/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.6.1/ruff-aarch64-apple-darwin.tar.gz.sha256">checksum</a></td> </tr> <tr> <td><a href="https://github.com/astral-sh/ruff/releases/download/0.6.1/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.6.1/ruff-x86_64-apple-darwin.tar.gz.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.6.1</h2> <p>This is a hotfix release to address an issue with <code>ruff-pre-commit</code>. In v0.6, Ruff changed its behavior to lint and format Jupyter notebooks by default; however, due to an oversight, these files were still excluded by default if Ruff was run via pre-commit, leading to inconsistent behavior. This has <a href="https://redirect.github.com/astral-sh/ruff-pre-commit/pull/96">now been fixed</a>.</p> <h3>Preview features</h3> <ul> <li>[<code>fastapi</code>] Implement <code>fast-api-unused-path-parameter</code> (<code>FAST003</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12638">#12638</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>pylint</code>] Rename <code>too-many-positional</code> to <code>too-many-positional-arguments</code> (<code>R0917</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12905">#12905</a>)</li> </ul> <h3>Server</h3> <ul> <li>Fix crash when applying "fix-all" code-action to notebook cells (<a href="https://redirect.github.com/astral-sh/ruff/pull/12929">#12929</a>)</li> </ul> <h3>Other changes</h3> <ul> <li>[<code>flake8-naming</code>]: Respect import conventions (<code>N817</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12922">#12922</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/astral-sh/ruff/commit/499c0bd875c3f53c65f542a217b4d9a0962191c3"><code>499c0bd</code></a> Bump version to 0.6.1 (<a href="https://redirect.github.com/astral-sh/ruff/issues/12937">#12937</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/4cb30b598f4247970f714021616583549d0b8b1e"><code>4cb30b5</code></a> <code>N817</code> docs: refer to the correct setting (<a href="https://redirect.github.com/astral-sh/ruff/issues/12935">#12935</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/aba0d83c1138ba2a787aa80495c136a057014c52"><code>aba0d83</code></a> [<code>flake8-naming</code>]: Respect import conventions (<code>N817</code>) (<a href="https://redirect.github.com/astral-sh/ruff/issues/12922">#12922</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/c319414e54d03b64335c75e2df58bb3a0cd25e7e"><code>c319414</code></a> Ignore blank line rules for docs formatting (<a href="https://redirect.github.com/astral-sh/ruff/issues/12934">#12934</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/ef1f6d98a05526ba3c82dfb6d1004d85f322e0c8"><code>ef1f6d9</code></a> Fix description of where the contributor list comes from in instructions for ...</li> <li><a href="https://github.com/astral-sh/ruff/commit/b850b812de0a1f2cfdd8a132ad1f069a1da7ce87"><code>b850b81</code></a> Use cell source code instead of the concatenated one (<a href="https://redirect.github.com/astral-sh/ruff/issues/12929">#12929</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/a87b27c0753b50653d658a533d19f7a3a9cc5ba6"><code>a87b27c</code></a> [red-knot] Add support for relative imports (<a href="https://redirect.github.com/astral-sh/ruff/issues/12910">#12910</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/9b73532b112b5c2aa9f820bcfc1185d7af6ca02d"><code>9b73532</code></a> [<code>flake8-async</code>] Fix examples to use <code>async with</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/12924">#12924</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/d8debb7a36bad602b543a299f5cdca5b4c29524f"><code>d8debb7</code></a> Simplify logic for <code>RUF027</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/12907">#12907</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/bd4a947b29564fdbe95a4ee6a188163cd2346eb7"><code>bd4a947</code></a> [red-knot] Add symbol and definition for parameters (<a href="https://redirect.github.com/astral-sh/ruff/issues/12862">#12862</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/0.6.0...0.6.1">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.0&new-version=0.6.1)](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