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.1.11 to 0.1.12 (#134)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.11 to 0.1.12. <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.1.12</h2> <h2>Changes</h2> <h3>Preview features</h3> <ul> <li>Formatter: Hug multiline-strings in preview style (<a href="https://redirect.github.com/astral-sh/ruff/pull/9243">#9243</a>)</li> <li>[<code>flake8-bandit</code>] Add <code>ssl-with-no-version</code> (<code>S504</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9384">#9384</a>)</li> <li>[<code>flake8-bandit</code>] Implement <code>ssl-insecure-version</code> (<code>S502</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9390">#9390</a>)</li> <li>[<code>flake8-bandit</code>] Implement <code>ssl-with-bad-defaults</code> (<code>S503</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9391">#9391</a>)</li> <li>[<code>flake8-bandit</code>] Implement suspicious import rules (<code>S4XX</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8831">#8831</a>)</li> <li>[<code>flake8-simplify</code>] Implement <code>zip-dict-keys-and-values</code> (<code>SIM911</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9460">#9460</a>)</li> <li>[<code>pyflakes</code>] Add a fix for <code>redefined-while-unused</code> (<code>F811</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9419">#9419</a>)</li> <li>[<code>pylint</code>] Implement <code>unnecessary-dunder-call</code> (<code>C2801</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9166">#9166</a>)</li> <li>[<code>ruff</code>] Add <code>parenthesize-chained-operators</code> (<code>RUF021</code>) to enforce parentheses in <code>a or b and c</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9440">#9440</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-boolean-trap</code>] Allow Boolean positional arguments in setters (<a href="https://redirect.github.com/astral-sh/ruff/pull/9429">#9429</a>)</li> <li>[<code>flake8-builtins</code>] Restrict <code>builtin-attribute-shadowing</code> (<code>A003</code>) to actual shadowed references (<a href="https://redirect.github.com/astral-sh/ruff/pull/9462">#9462</a>)</li> <li>[<code>flake8-pyi</code>] Add fix for <code>generator-return-from-iter-method</code> (<code>PYI058</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9355">#9355</a>)</li> <li>[<code>pyflakes</code>] Don't flag <code>redefined-while-unused</code> (<code>F811</code>) in <code>if</code> branches (<a href="https://redirect.github.com/astral-sh/ruff/pull/9418">#9418</a>)</li> <li>[<code>pyupgrade</code>] Add some additional Python 3.12 typing members to <code>deprecated-import</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9445">#9445</a>)</li> <li>[<code>ruff</code>] Add fix for <code>parenthesize-chained-operators</code> (<code>RUF021</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9449">#9449</a>)</li> <li>[<code>ruff</code>] Include subscripts and attributes in static key rule (<code>RUF011</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9416">#9416</a>)</li> <li>[<code>ruff</code>] Support variable keys in static dictionary key rule (<code>RUF011</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9411">#9411</a>)</li> </ul> <h3>Formatter</h3> <ul> <li>Generate deterministic IDs when formatting notebooks (<a href="https://redirect.github.com/astral-sh/ruff/pull/9359">#9359</a>)</li> <li>Allow <code># fmt: skip</code> with interspersed same-line comments (<a href="https://redirect.github.com/astral-sh/ruff/pull/9395">#9395</a>)</li> <li>Parenthesize breaking named expressions in match guards (<a href="https://redirect.github.com/astral-sh/ruff/pull/9396">#9396</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Add cell indexes to all diagnostics (<a href="https://redirect.github.com/astral-sh/ruff/pull/9387">#9387</a>)</li> <li>Avoid infinite loop in constant vs. <code>None</code> comparisons (<a href="https://redirect.github.com/astral-sh/ruff/pull/9376">#9376</a>)</li> <li>Handle raises with implicit alternate branches (<a href="https://redirect.github.com/astral-sh/ruff/pull/9377">#9377</a>)</li> <li>Ignore trailing quotes for unclosed l-brace errors (<a href="https://redirect.github.com/astral-sh/ruff/pull/9388">#9388</a>)</li> <li>Respect multi-segment submodule imports when resolving qualified names (<a href="https://redirect.github.com/astral-sh/ruff/pull/9382">#9382</a>)</li> <li>Use <code>DisplayParseError</code> for stdin parser errors (<a href="https://redirect.github.com/astral-sh/ruff/pull/9409">#9409</a>)</li> <li>Use <code>comment_ranges</code> for isort directive extraction (<a href="https://redirect.github.com/astral-sh/ruff/pull/9414">#9414</a>)</li> <li>Use transformed source code for diagnostic locations (<a href="https://redirect.github.com/astral-sh/ruff/pull/9408">#9408</a>)</li> <li>[<code>flake8-pyi</code>] Exclude <code>warnings.deprecated</code> and <code>typing_extensions.deprecated</code> arguments (<a href="https://redirect.github.com/astral-sh/ruff/pull/9423">#9423</a>)</li> <li>[<code>flake8-pyi</code>] Fix false negative for <code>unused-private-protocol</code> (<code>PYI046</code>) with unused generic protocols (<a href="https://redirect.github.com/astral-sh/ruff/pull/9405">#9405</a>)</li> <li>[<code>pydocstyle</code>] Disambiguate argument descriptors from section headers (<a href="https://redirect.github.com/astral-sh/ruff/pull/9427">#9427</a>)</li> <li>[<code>pylint</code>] Homogenize <code>PLR0914</code> message to match other <code>PLR09XX</code> rules (<a href="https://redirect.github.com/astral-sh/ruff/pull/9399">#9399</a>)</li> <li>[<code>ruff</code>] Allow <code>Hashable = None</code> in type annotations (<code>RUF013</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9442">#9442</a>)</li> </ul> <h3>Documentation</h3> <!-- 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.1.12</h2> <h3>Preview features</h3> <ul> <li>Formatter: Hug multiline-strings in preview style (<a href="https://redirect.github.com/astral-sh/ruff/pull/9243">#9243</a>)</li> <li>[<code>flake8-bandit</code>] Add <code>ssl-with-no-version</code> (<code>S504</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9384">#9384</a>)</li> <li>[<code>flake8-bandit</code>] Implement <code>ssl-insecure-version</code> (<code>S502</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9390">#9390</a>)</li> <li>[<code>flake8-bandit</code>] Implement <code>ssl-with-bad-defaults</code> (<code>S503</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9391">#9391</a>)</li> <li>[<code>flake8-bandit</code>] Implement suspicious import rules (<code>S4XX</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/8831">#8831</a>)</li> <li>[<code>flake8-simplify</code>] Implement <code>zip-dict-keys-and-values</code> (<code>SIM911</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9460">#9460</a>)</li> <li>[<code>pyflakes</code>] Add a fix for <code>redefined-while-unused</code> (<code>F811</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9419">#9419</a>)</li> <li>[<code>pylint</code>] Implement <code>unnecessary-dunder-call</code> (<code>C2801</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9166">#9166</a>)</li> <li>[<code>ruff</code>] Add <code>parenthesize-chained-operators</code> (<code>RUF021</code>) to enforce parentheses in <code>a or b and c</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9440">#9440</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-boolean-trap</code>] Allow Boolean positional arguments in setters (<a href="https://redirect.github.com/astral-sh/ruff/pull/9429">#9429</a>)</li> <li>[<code>flake8-builtins</code>] Restrict <code>builtin-attribute-shadowing</code> (<code>A003</code>) to actual shadowed references (<a href="https://redirect.github.com/astral-sh/ruff/pull/9462">#9462</a>)</li> <li>[<code>flake8-pyi</code>] Add fix for <code>generator-return-from-iter-method</code> (<code>PYI058</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9355">#9355</a>)</li> <li>[<code>pyflakes</code>] Don't flag <code>redefined-while-unused</code> (<code>F811</code>) in <code>if</code> branches (<a href="https://redirect.github.com/astral-sh/ruff/pull/9418">#9418</a>)</li> <li>[<code>pyupgrade</code>] Add some additional Python 3.12 typing members to <code>deprecated-import</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/9445">#9445</a>)</li> <li>[<code>ruff</code>] Add fix for <code>parenthesize-chained-operators</code> (<code>RUF021</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9449">#9449</a>)</li> <li>[<code>ruff</code>] Include subscripts and attributes in static key rule (<code>RUF011</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9416">#9416</a>)</li> <li>[<code>ruff</code>] Support variable keys in static dictionary key rule (<code>RUF011</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9411">#9411</a>)</li> </ul> <h3>Formatter</h3> <ul> <li>Generate deterministic IDs when formatting notebooks (<a href="https://redirect.github.com/astral-sh/ruff/pull/9359">#9359</a>)</li> <li>Allow <code># fmt: skip</code> with interspersed same-line comments (<a href="https://redirect.github.com/astral-sh/ruff/pull/9395">#9395</a>)</li> <li>Parenthesize breaking named expressions in match guards (<a href="https://redirect.github.com/astral-sh/ruff/pull/9396">#9396</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Add cell indexes to all diagnostics (<a href="https://redirect.github.com/astral-sh/ruff/pull/9387">#9387</a>)</li> <li>Avoid infinite loop in constant vs. <code>None</code> comparisons (<a href="https://redirect.github.com/astral-sh/ruff/pull/9376">#9376</a>)</li> <li>Handle raises with implicit alternate branches (<a href="https://redirect.github.com/astral-sh/ruff/pull/9377">#9377</a>)</li> <li>Ignore trailing quotes for unclosed l-brace errors (<a href="https://redirect.github.com/astral-sh/ruff/pull/9388">#9388</a>)</li> <li>Respect multi-segment submodule imports when resolving qualified names (<a href="https://redirect.github.com/astral-sh/ruff/pull/9382">#9382</a>)</li> <li>Use <code>DisplayParseError</code> for stdin parser errors (<a href="https://redirect.github.com/astral-sh/ruff/pull/9409">#9409</a>)</li> <li>Use <code>comment_ranges</code> for isort directive extraction (<a href="https://redirect.github.com/astral-sh/ruff/pull/9414">#9414</a>)</li> <li>Use transformed source code for diagnostic locations (<a href="https://redirect.github.com/astral-sh/ruff/pull/9408">#9408</a>)</li> <li>[<code>flake8-pyi</code>] Exclude <code>warnings.deprecated</code> and <code>typing_extensions.deprecated</code> arguments (<a href="https://redirect.github.com/astral-sh/ruff/pull/9423">#9423</a>)</li> <li>[<code>flake8-pyi</code>] Fix false negative for <code>unused-private-protocol</code> (<code>PYI046</code>) with unused generic protocols (<a href="https://redirect.github.com/astral-sh/ruff/pull/9405">#9405</a>)</li> <li>[<code>pydocstyle</code>] Disambiguate argument descriptors from section headers (<a href="https://redirect.github.com/astral-sh/ruff/pull/9427">#9427</a>)</li> <li>[<code>pylint</code>] Homogenize <code>PLR0914</code> message to match other <code>PLR09XX</code> rules (<a href="https://redirect.github.com/astral-sh/ruff/pull/9399">#9399</a>)</li> <li>[<code>ruff</code>] Allow <code>Hashable = None</code> in type annotations (<code>RUF013</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/9442">#9442</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Fix admonition hyperlink colouring (<a href="https://redirect.github.com/astral-sh/ruff/pull/9385">#9385</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/55f8f3b2cc64188393e978af8e80a7309714eda4"><code>55f8f3b</code></a> Bump version to v0.1.12 (<a href="https://redirect.github.com/astral-sh/ruff/issues/9475">#9475</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/eb4ed2471b48d6ccba74064c65e37e32cba41a6c"><code>eb4ed24</code></a> [<code>flake8-simplify</code>] Implement <code>SIM911</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/9460">#9460</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/f192c725961b346ade010fa32690b4a83f681c0f"><code>f192c72</code></a> Remove type parameter from <code>parse_*</code> methods (<a href="https://redirect.github.com/astral-sh/ruff/issues/9466">#9466</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/25bafd2d66abe2b93f8e3199b8c60a8549523139"><code>25bafd2</code></a> Restrict <code>builtin-attribute-shadowing</code> to actual shadowed references (<a href="https://redirect.github.com/astral-sh/ruff/issues/9462">#9462</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/7fc51d29c55e15e29feb23a8d4dfa0fb3210ba99"><code>7fc51d2</code></a> docs: fix typo in formatter.md (<a href="https://redirect.github.com/astral-sh/ruff/issues/9473">#9473</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/2d362e9366c9d7b33f6b7266ca9c43ae30371582"><code>2d362e9</code></a> Add numpyro and pymc to ruff users (<a href="https://redirect.github.com/astral-sh/ruff/issues/9468">#9468</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/501bc1c270f9a2dcd25af5129138393ead19b318"><code>501bc1c</code></a> Avoid allocating during implicit concatenated string formatting (<a href="https://redirect.github.com/astral-sh/ruff/issues/9469">#9469</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/14d3fe6bfadd40e95ce09cf4b264d22ae1425b03"><code>14d3fe6</code></a> Add a idempotent fuzz_target for ruff_python_formatter (<a href="https://redirect.github.com/astral-sh/ruff/issues/9448">#9448</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/4a3bb67b5f540b81e1edecedda9785bd6d9f4fc9"><code>4a3bb67</code></a> Move <code>pyproject_config</code> into <code>Resolver</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/9453">#9453</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/79f4abbb8db1490fc83e68c2fc5b30ea1a23955f"><code>79f4abb</code></a> Import Black's type aliases test (<a href="https://redirect.github.com/astral-sh/ruff/issues/9456">#9456</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/v0.1.11...v0.1.12">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.1.11&new-version=0.1.12)](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