Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps-py): bump ruff from 0.4.7 to 0.4.8 (#403)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.7 to 0.4.8. <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>v0.4.8</h2> <h2>Changes</h2> <h3>Performance</h3> <ul> <li>Linter performance has been improved by around 10% on some microbenchmarks by refactoring the lexer and parser to maintain synchronicity between them (<a href="https://redirect.github.com/astral-sh/ruff/pull/11457">#11457</a>)</li> </ul> <h3>Preview features</h3> <ul> <li>[<code>flake8-bugbear</code>] Implement <code>return-in-generator</code> (<code>B901</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11644">#11644</a>)</li> <li>[<code>flake8-pyi</code>] Implement <code>PYI063</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/11699">#11699</a>)</li> <li>[<code>pygrep_hooks</code>] Check blanket ignores via file-level pragmas (<code>PGH004</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11540">#11540</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>pyupgrade</code>] Update <code>UP035</code> for Python 3.13 and the latest version of <code>typing_extensions</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/11693">#11693</a>)</li> <li>[<code>numpy</code>] Update <code>NPY001</code> rule for NumPy 2.0 (<a href="https://redirect.github.com/astral-sh/ruff/pull/11735">#11735</a>)</li> </ul> <h3>Server</h3> <ul> <li>Formatting a document with syntax problems no longer spams a visible error popup (<a href="https://redirect.github.com/astral-sh/ruff/pull/11745">#11745</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Add RDJson support for <code>--output-format</code> flag (<a href="https://redirect.github.com/astral-sh/ruff/pull/11682">#11682</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>pyupgrade</code>] Write empty string in lieu of panic when fixing <code>UP032</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/11696">#11696</a>)</li> <li>[<code>flake8-simplify</code>] Simplify double negatives in <code>SIM103</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/11684">#11684</a>)</li> <li>Ensure the expression generator adds a newline before <code>type</code> statements (<a href="https://redirect.github.com/astral-sh/ruff/pull/11720">#11720</a>)</li> <li>Respect per-file ignores for blanket and redirected noqa rules (<a href="https://redirect.github.com/astral-sh/ruff/pull/11728">#11728</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/MichaReiser"><code>@MichaReiser</code></a></li> <li><a href="https://github.com/MichaelOultram-pexip"><code>@MichaelOultram-pexip</code></a></li> <li><a href="https://github.com/ajesipow"><code>@ajesipow</code></a></li> <li><a href="https://github.com/carljm"><code>@carljm</code></a></li> <li><a href="https://github.com/charliermarsh"><code>@charliermarsh</code></a></li> <li><a href="https://github.com/dhruvmanila"><code>@dhruvmanila</code></a></li> <li><a href="https://github.com/github-actions"><code>@github-actions</code></a></li> <li><a href="https://github.com/mtsokol"><code>@mtsokol</code></a></li> <li><a href="https://github.com/renovate"><code>@renovate</code></a></li> <li><a href="https://github.com/snowsignal"><code>@snowsignal</code></a></li> <li><a href="https://github.com/tobb10001"><code>@tobb10001</code></a></li> <li><a href="https://github.com/tusharsadhwani"><code>@tusharsadhwani</code></a></li> </ul> </blockquote> </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.4.8</h2> <h3>Performance</h3> <ul> <li>Linter performance has been improved by around 10% on some microbenchmarks by refactoring the lexer and parser to maintain synchronicity between them (<a href="https://redirect.github.com/astral-sh/ruff/pull/11457">#11457</a>)</li> </ul> <h3>Preview features</h3> <ul> <li>[<code>flake8-bugbear</code>] Implement <code>return-in-generator</code> (<code>B901</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11644">#11644</a>)</li> <li>[<code>flake8-pyi</code>] Implement <code>PYI063</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/11699">#11699</a>)</li> <li>[<code>pygrep_hooks</code>] Check blanket ignores via file-level pragmas (<code>PGH004</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/11540">#11540</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>pyupgrade</code>] Update <code>UP035</code> for Python 3.13 and the latest version of <code>typing_extensions</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/11693">#11693</a>)</li> <li>[<code>numpy</code>] Update <code>NPY001</code> rule for NumPy 2.0 (<a href="https://redirect.github.com/astral-sh/ruff/pull/11735">#11735</a>)</li> </ul> <h3>Server</h3> <ul> <li>Formatting a document with syntax problems no longer spams a visible error popup (<a href="https://redirect.github.com/astral-sh/ruff/pull/11745">#11745</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Add RDJson support for <code>--output-format</code> flag (<a href="https://redirect.github.com/astral-sh/ruff/pull/11682">#11682</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>pyupgrade</code>] Write empty string in lieu of panic when fixing <code>UP032</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/11696">#11696</a>)</li> <li>[<code>flake8-simplify</code>] Simplify double negatives in <code>SIM103</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/11684">#11684</a>)</li> <li>Ensure the expression generator adds a newline before <code>type</code> statements (<a href="https://redirect.github.com/astral-sh/ruff/pull/11720">#11720</a>)</li> <li>Respect per-file ignores for blanket and redirected noqa rules (<a href="https://redirect.github.com/astral-sh/ruff/pull/11728">#11728</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/astral-sh/ruff/commit/a8cf7096ff1acbccf3af3aa37cd6e2170f1b1bc5"><code>a8cf709</code></a> Bump version to v0.4.8 (<a href="https://redirect.github.com/astral-sh/ruff/issues/11755">#11755</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/895eb3ef485836a75225e2534b638b98eaf30977"><code>895eb3e</code></a> [red-knot] refactor CFG outside of symbol table (<a href="https://redirect.github.com/astral-sh/ruff/issues/11746">#11746</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/2e0a9755e07cfe7ee30683b65bbc1d9b5aa8b141"><code>2e0a975</code></a> Disallow access to <code>Parsed</code> output, use the API instead (<a href="https://redirect.github.com/astral-sh/ruff/issues/11741">#11741</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/b021b5babec5d88804cd67e03a946e1da0e1c0be"><code>b021b5b</code></a> Use <code>Tokens</code> from parsed type annotation or parsed source (<a href="https://redirect.github.com/astral-sh/ruff/issues/11740">#11740</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/eed6d784dfab61d0f1b1ebd95a7de7b1c6371149"><code>eed6d78</code></a> Update type annotation parsing API to return <code>Parsed</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/11739">#11739</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/8338db6c1247a22e0e42ab1b24acc45ae4837149"><code>8338db6</code></a> <code>ruff server</code>: Formatting a document with syntax problems no longer spams a v...</li> <li><a href="https://github.com/astral-sh/ruff/commit/d056d09547c5fe7ff5e787ada19fc37a73d9b444"><code>d056d09</code></a> [red-knot] add if-statement support to FlowGraph (<a href="https://redirect.github.com/astral-sh/ruff/issues/11673">#11673</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/1645be018d208271bbc82b9b965eaef0e727c32a"><code>1645be0</code></a> Update <code>NPY001</code> rule for NumPy 2.0 (<a href="https://redirect.github.com/astral-sh/ruff/issues/11735">#11735</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/2c865023acb0593a9c367c43c46893c83ded25ba"><code>2c86502</code></a> CI: add job to run tests under minimum supported rust version (msrv) (<a href="https://redirect.github.com/astral-sh/ruff/issues/11737">#11737</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/2567e14b7a550074c37fc5695e85510b5120a37a"><code>2567e14</code></a> Lexer should consider BOM for the start offset (<a href="https://redirect.github.com/astral-sh/ruff/issues/11732">#11732</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/v0.4.7...v0.4.8">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.4.7&new-version=0.4.8)](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