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.2.1 to 0.2.2 (#108)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.2.1 to 0.2.2. <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.2.2</h2> <p>Highlights include:</p> <ul> <li>Initial support formatting f-strings (in <code>--preview</code>).</li> <li>Support for overriding arbitrary configuration options via the CLI through an expanded <code>--config</code> argument (e.g., <code>--config "lint.isort.combine-as-imports=false"</code>).</li> <li>Significant performance improvements in Ruff's lexer, parser, and lint rules.</li> </ul> <h2>Changes</h2> <h3>Preview features</h3> <ul> <li>Implement minimal f-string formatting (<a href="https://redirect.github.com/astral-sh/ruff/pull/9642">#9642</a>)</li> <li>[<code>pycodestyle</code>] Add blank line(s) rules (<code>E301</code>, <code>E302</code>, <code>E303</code>, <code>E304</code>, <code>E305</code>, <code>E306</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9266">#9266</a>)</li> <li>[<code>refurb</code>] Implement <code>readlines_in_for</code> (<code>FURB129</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9880">#9880</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>ruff</code>] Ensure closing parentheses for multiline sequences are always on their own line (<code>RUF022</code>, <code>RUF023</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9793">#9793</a>)</li> <li>[<code>numpy</code>] Add missing deprecation violations (<code>NPY002</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9862">#9862</a>)</li> <li>[<code>flake8-bandit</code>] Detect <code>mark_safe</code> usages in decorators (<a href="https://redirect.github.com/astral-sh/ruff/pull/9887">#9887</a>)</li> <li>[<code>ruff</code>] Expand <code>asyncio-dangling-task</code> (<code>RUF006</code>) to include <code>new_event_loop</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9976">#9976</a>)</li> <li>[<code>flake8-pyi</code>] Ignore 'unused' private type dicts in class scopes (<a href="https://redirect.github.com/astral-sh/ruff/pull/9952">#9952</a>)</li> </ul> <h3>Formatter</h3> <ul> <li>Docstring formatting: Preserve tab indentation when using <code>indent-style=tabs</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9915">#9915</a>)</li> <li>Disable top-level docstring formatting for notebooks (<a href="https://redirect.github.com/astral-sh/ruff/pull/9957">#9957</a>)</li> <li>Stabilize quote-style's <code>preserve</code> mode (<a href="https://redirect.github.com/astral-sh/ruff/pull/9922">#9922</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Allow arbitrary configuration options to be overridden via the CLI (<a href="https://redirect.github.com/astral-sh/ruff/pull/9599">#9599</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Make <code>show-settings</code> filters directory-agnostic (<a href="https://redirect.github.com/astral-sh/ruff/pull/9866">#9866</a>)</li> <li>Respect duplicates when rewriting type aliases (<a href="https://redirect.github.com/astral-sh/ruff/pull/9905">#9905</a>)</li> <li>Respect tuple assignments in typing analyzer (<a href="https://redirect.github.com/astral-sh/ruff/pull/9969">#9969</a>)</li> <li>Use atomic write when persisting cache (<a href="https://redirect.github.com/astral-sh/ruff/pull/9981">#9981</a>)</li> <li>Use non-parenthesized range for <code>DebugText</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9953">#9953</a>)</li> <li>[<code>flake8-simplify</code>] Avoid false positive with <code>async</code> for loops (<code>SIM113</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9996">#9996</a>)</li> <li>[<code>flake8-trio</code>] Respect <code>async with</code> in <code>timeout-without-await</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9859">#9859</a>)</li> <li>[<code>perflint</code>] Catch a wider range of mutations in <code>PERF101</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9955">#9955</a>)</li> <li>[<code>pycodestyle</code>] Fix <code>E30X</code> panics on blank lines with trailing white spaces (<a href="https://redirect.github.com/astral-sh/ruff/pull/9907">#9907</a>)</li> <li>[<code>pydocstyle</code>] Allow using <code>parameters</code> as a subsection header (<code>D405</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9894">#9894</a>)</li> <li>[<code>pydocstyle</code>] Fix blank-line docstring rules for module-level docstrings (<a href="https://redirect.github.com/astral-sh/ruff/pull/9878">#9878</a>)</li> <li>[<code>pylint</code>] Accept 0.0 and 1.0 as common magic values (<code>PLR2004</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9964">#9964</a>)</li> <li>[<code>pylint</code>] Avoid suggesting set rewrites for non-hashable types (<a href="https://redirect.github.com/astral-sh/ruff/pull/9956">#9956</a>)</li> <li>[<code>ruff</code>] Avoid false negatives with string literals inside of method calls (<code>RUF027</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9865">#9865</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.2.2</h2> <p>Highlights include:</p> <ul> <li>Initial support formatting f-strings (in <code>--preview</code>).</li> <li>Support for overriding arbitrary configuration options via the CLI through an expanded <code>--config</code> argument (e.g., <code>--config "lint.isort.combine-as-imports=false"</code>).</li> <li>Significant performance improvements in Ruff's lexer, parser, and lint rules.</li> </ul> <h3>Preview features</h3> <ul> <li>Implement minimal f-string formatting (<a href="https://redirect.github.com/astral-sh/ruff/pull/9642">#9642</a>)</li> <li>[<code>pycodestyle</code>] Add blank line(s) rules (<code>E301</code>, <code>E302</code>, <code>E303</code>, <code>E304</code>, <code>E305</code>, <code>E306</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9266">#9266</a>)</li> <li>[<code>refurb</code>] Implement <code>readlines_in_for</code> (<code>FURB129</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9880">#9880</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>ruff</code>] Ensure closing parentheses for multiline sequences are always on their own line (<code>RUF022</code>, <code>RUF023</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9793">#9793</a>)</li> <li>[<code>numpy</code>] Add missing deprecation violations (<code>NPY002</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9862">#9862</a>)</li> <li>[<code>flake8-bandit</code>] Detect <code>mark_safe</code> usages in decorators (<a href="https://redirect.github.com/astral-sh/ruff/pull/9887">#9887</a>)</li> <li>[<code>ruff</code>] Expand <code>asyncio-dangling-task</code> (<code>RUF006</code>) to include <code>new_event_loop</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9976">#9976</a>)</li> <li>[<code>flake8-pyi</code>] Ignore 'unused' private type dicts in class scopes (<a href="https://redirect.github.com/astral-sh/ruff/pull/9952">#9952</a>)</li> </ul> <h3>Formatter</h3> <ul> <li>Docstring formatting: Preserve tab indentation when using <code>indent-style=tabs</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9915">#9915</a>)</li> <li>Disable top-level docstring formatting for notebooks (<a href="https://redirect.github.com/astral-sh/ruff/pull/9957">#9957</a>)</li> <li>Stabilize quote-style's <code>preserve</code> mode (<a href="https://redirect.github.com/astral-sh/ruff/pull/9922">#9922</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Allow arbitrary configuration options to be overridden via the CLI (<a href="https://redirect.github.com/astral-sh/ruff/pull/9599">#9599</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Make <code>show-settings</code> filters directory-agnostic (<a href="https://redirect.github.com/astral-sh/ruff/pull/9866">#9866</a>)</li> <li>Respect duplicates when rewriting type aliases (<a href="https://redirect.github.com/astral-sh/ruff/pull/9905">#9905</a>)</li> <li>Respect tuple assignments in typing analyzer (<a href="https://redirect.github.com/astral-sh/ruff/pull/9969">#9969</a>)</li> <li>Use atomic write when persisting cache (<a href="https://redirect.github.com/astral-sh/ruff/pull/9981">#9981</a>)</li> <li>Use non-parenthesized range for <code>DebugText</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9953">#9953</a>)</li> <li>[<code>flake8-simplify</code>] Avoid false positive with <code>async</code> for loops (<code>SIM113</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9996">#9996</a>)</li> <li>[<code>flake8-trio</code>] Respect <code>async with</code> in <code>timeout-without-await</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9859">#9859</a>)</li> <li>[<code>perflint</code>] Catch a wider range of mutations in <code>PERF101</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9955">#9955</a>)</li> <li>[<code>pycodestyle</code>] Fix <code>E30X</code> panics on blank lines with trailing white spaces (<a href="https://redirect.github.com/astral-sh/ruff/pull/9907">#9907</a>)</li> <li>[<code>pydocstyle</code>] Allow using <code>parameters</code> as a subsection header (<code>D405</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9894">#9894</a>)</li> <li>[<code>pydocstyle</code>] Fix blank-line docstring rules for module-level docstrings (<a href="https://redirect.github.com/astral-sh/ruff/pull/9878">#9878</a>)</li> <li>[<code>pylint</code>] Accept 0.0 and 1.0 as common magic values (<code>PLR2004</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9964">#9964</a>)</li> <li>[<code>pylint</code>] Avoid suggesting set rewrites for non-hashable types (<a href="https://redirect.github.com/astral-sh/ruff/pull/9956">#9956</a>)</li> <li>[<code>ruff</code>] Avoid false negatives with string literals inside of method calls (<code>RUF027</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9865">#9865</a>)</li> <li>[<code>ruff</code>] Fix panic on with f-string detection (<code>RUF027</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9990">#9990</a>)</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/235cfb79769da2c435b9c88d8bae4a79f1234857"><code>235cfb7</code></a> Bump version to v0.2.2 (<a href="https://redirect.github.com/astral-sh/ruff/issues/10018">#10018</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/91ae81b565da07f8711712ff4e175ed7262bc630"><code>91ae81b</code></a> Move <code>RUF001</code>, <code>RUF002</code> to AST checker (<a href="https://redirect.github.com/astral-sh/ruff/issues/9993">#9993</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/d46c5d8ac889f19bb1c66791f6ae5ed9bb2df062"><code>d46c5d8</code></a> docs: Formatter compatibility warning for D207 and D300 (<a href="https://redirect.github.com/astral-sh/ruff/issues/10007">#10007</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/20217e9bbda5434288d96454e90cb0846c1f330f"><code>20217e9</code></a> Fix panic on RUF027 (<a href="https://redirect.github.com/astral-sh/ruff/issues/9990">#9990</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/72bf1c28805787d0aa842fcf493b4406e0e97d2d"><code>72bf1c2</code></a> Preview minimal f-string formatting (<a href="https://redirect.github.com/astral-sh/ruff/issues/9642">#9642</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/c47ff658e4072c1a574d27967abfd4b7a6d93223"><code>c47ff65</code></a> chore(docs): update Discord invite to permalink (<a href="https://redirect.github.com/astral-sh/ruff/issues/10005">#10005</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/c3bba54b6bb8752ed98374cdc0c30633da2bec2c"><code>c3bba54</code></a> Fix SIM113 false positive with async for loops (<a href="https://redirect.github.com/astral-sh/ruff/issues/9996">#9996</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/fe79798c12b4771cee0b0c59964ad7bd751c3779"><code>fe79798</code></a> split string module (<a href="https://redirect.github.com/astral-sh/ruff/issues/9987">#9987</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/bb8d2034e2544de3c94f4c248cfae6cae5f4696c"><code>bb8d203</code></a> Use atomic write when persisting cache (<a href="https://redirect.github.com/astral-sh/ruff/issues/9981">#9981</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/f40e012b4ee29a58ccbdfcbd3d6edd7ff8f5cbf0"><code>f40e012</code></a> Use name directly in RUF006 (<a href="https://redirect.github.com/astral-sh/ruff/issues/9979">#9979</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/v0.2.1...v0.2.2">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.2.1&new-version=0.2.2)](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