Skip to content

Commit

Permalink
chore(deps-dev): bump ruff from 0.5.6 to 0.5.7 (#508)
Browse files Browse the repository at this point in the history
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.5.6 to 0.5.7.
<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.7</h2>
<h2>Release Notes</h2>
<h3>Preview features</h3>
<ul>
<li>[<code>flake8-comprehensions</code>] Account for list and set
comprehensions in <code>unnecessary-literal-within-tuple-call</code>
(<code>C409</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12657">#12657</a>)</li>
<li>[<code>flake8-pyi</code>] Add autofix for
<code>future-annotations-in-stub</code> (<code>PYI044</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12676">#12676</a>)</li>
<li>[<code>flake8-return</code>] Avoid syntax error when auto-fixing
<code>RET505</code> with mixed indentation (space and tabs) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12740">#12740</a>)</li>
<li>[<code>pydoclint</code>] Add <code>docstring-missing-yields</code>
(<code>DOC402</code>) and <code>docstring-extraneous-yields</code>
(<code>DOC403</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12538">#12538</a>)</li>
<li>[<code>pydoclint</code>] Avoid <code>DOC201</code> if docstring
begins with &quot;Return&quot;, &quot;Returns&quot;, &quot;Yield&quot;,
or &quot;Yields&quot; (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12675">#12675</a>)</li>
<li>[<code>pydoclint</code>] Deduplicate collected exceptions after
traversing function bodies (<code>DOC501</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12642">#12642</a>)</li>
<li>[<code>pydoclint</code>] Ignore <code>DOC</code> errors for stub
functions (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12651">#12651</a>)</li>
<li>[<code>pydoclint</code>] Teach rules to understand reraised
exceptions as being explicitly raised (<code>DOC501</code>,
<code>DOC502</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12639">#12639</a>)</li>
<li>[<code>ruff</code>] Implement
<code>incorrectly-parenthesized-tuple-in-subscript</code>
(<code>RUF031</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12480">#12480</a>)</li>
<li>[<code>ruff</code>] Mark <code>RUF023</code> fix as unsafe if
<code>__slots__</code> is not a set and the binding is used elsewhere
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/12692">#12692</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>refurb</code>] Add autofix for <code>implicit-cwd</code>
(<code>FURB177</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12708">#12708</a>)</li>
<li>[<code>ruff</code>] Add autofix for
<code>zip-instead-of-pairwise</code> (<code>RUF007</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12663">#12663</a>)</li>
<li>[<code>tryceratops</code>] Add <code>BaseException</code> to
<code>raise-vanilla-class</code> rule (<code>TRY002</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12620">#12620</a>)</li>
</ul>
<h3>Server</h3>
<ul>
<li>Ignore non-file workspace URL; Ruff will display a warning
notification in this case (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12725">#12725</a>)</li>
</ul>
<h3>CLI</h3>
<ul>
<li>Fix cache invalidation for nested <code>pyproject.toml</code> files
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/12727">#12727</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>[<code>flake8-async</code>] Fix false positives with multiple
<code>async with</code> items (<code>ASYNC100</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12643">#12643</a>)</li>
<li>[<code>flake8-bandit</code>] Avoid false-positives for list
concatenations in SQL construction (<code>S608</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12720">#12720</a>)</li>
<li>[<code>flake8-bugbear</code>] Treat <code>return</code> as
equivalent to <code>break</code> (<code>B909</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12646">#12646</a>)</li>
<li>[<code>flake8-comprehensions</code>] Set comprehensions not a
violation for <code>sum</code> in
<code>unnecessary-comprehension-in-call</code> (<code>C419</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12691">#12691</a>)</li>
<li>[<code>flake8-simplify</code>] Parenthesize conditions based on
precedence when merging if arms (<code>SIM114</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12737">#12737</a>)</li>
<li>[<code>pydoclint</code>] Try both 'Raises' section styles when
convention is unspecified (<code>DOC501</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12649">#12649</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/DavideRagazzon"><code>@​DavideRagazzon</code></a></li>
<li><a
href="https://github.com/InSyncWithFoo"><code>@​InSyncWithFoo</code></a></li>
<li><a
href="https://github.com/MichaReiser"><code>@​MichaReiser</code></a></li>
<li><a
href="https://github.com/augustelalande"><code>@​augustelalande</code></a></li>
<li><a
href="https://github.com/bluetech"><code>@​bluetech</code></a></li>
<li><a href="https://github.com/carljm"><code>@​carljm</code></a></li>
<li><a href="https://github.com/cclauss"><code>@​cclauss</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>
</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.7</h2>
<h3>Preview features</h3>
<ul>
<li>[<code>flake8-comprehensions</code>] Account for list and set
comprehensions in <code>unnecessary-literal-within-tuple-call</code>
(<code>C409</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12657">#12657</a>)</li>
<li>[<code>flake8-pyi</code>] Add autofix for
<code>future-annotations-in-stub</code> (<code>PYI044</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12676">#12676</a>)</li>
<li>[<code>flake8-return</code>] Avoid syntax error when auto-fixing
<code>RET505</code> with mixed indentation (space and tabs) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12740">#12740</a>)</li>
<li>[<code>pydoclint</code>] Add <code>docstring-missing-yields</code>
(<code>DOC402</code>) and <code>docstring-extraneous-yields</code>
(<code>DOC403</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12538">#12538</a>)</li>
<li>[<code>pydoclint</code>] Avoid <code>DOC201</code> if docstring
begins with &quot;Return&quot;, &quot;Returns&quot;, &quot;Yield&quot;,
or &quot;Yields&quot; (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12675">#12675</a>)</li>
<li>[<code>pydoclint</code>] Deduplicate collected exceptions after
traversing function bodies (<code>DOC501</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12642">#12642</a>)</li>
<li>[<code>pydoclint</code>] Ignore <code>DOC</code> errors for stub
functions (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12651">#12651</a>)</li>
<li>[<code>pydoclint</code>] Teach rules to understand reraised
exceptions as being explicitly raised (<code>DOC501</code>,
<code>DOC502</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12639">#12639</a>)</li>
<li>[<code>ruff</code>] Implement
<code>incorrectly-parenthesized-tuple-in-subscript</code>
(<code>RUF031</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12480">#12480</a>)</li>
<li>[<code>ruff</code>] Mark <code>RUF023</code> fix as unsafe if
<code>__slots__</code> is not a set and the binding is used elsewhere
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/12692">#12692</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>refurb</code>] Add autofix for <code>implicit-cwd</code>
(<code>FURB177</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12708">#12708</a>)</li>
<li>[<code>ruff</code>] Add autofix for
<code>zip-instead-of-pairwise</code> (<code>RUF007</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12663">#12663</a>)</li>
<li>[<code>tryceratops</code>] Add <code>BaseException</code> to
<code>raise-vanilla-class</code> rule (<code>TRY002</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12620">#12620</a>)</li>
</ul>
<h3>Server</h3>
<ul>
<li>Ignore non-file workspace URL; Ruff will display a warning
notification in this case (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12725">#12725</a>)</li>
</ul>
<h3>CLI</h3>
<ul>
<li>Fix cache invalidation for nested <code>pyproject.toml</code> files
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/12727">#12727</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>[<code>flake8-async</code>] Fix false positives with multiple
<code>async with</code> items (<code>ASYNC100</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12643">#12643</a>)</li>
<li>[<code>flake8-bandit</code>] Avoid false-positives for list
concatenations in SQL construction (<code>S608</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12720">#12720</a>)</li>
<li>[<code>flake8-bugbear</code>] Treat <code>return</code> as
equivalent to <code>break</code> (<code>B909</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12646">#12646</a>)</li>
<li>[<code>flake8-comprehensions</code>] Set comprehensions not a
violation for <code>sum</code> in
<code>unnecessary-comprehension-in-call</code> (<code>C419</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12691">#12691</a>)</li>
<li>[<code>flake8-simplify</code>] Parenthesize conditions based on
precedence when merging if arms (<code>SIM114</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12737">#12737</a>)</li>
<li>[<code>pydoclint</code>] Try both 'Raises' section styles when
convention is unspecified (<code>DOC501</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12649">#12649</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/astral-sh/ruff/commit/221ea662e0e19384f774c99e93a9fd08b6f14029"><code>221ea66</code></a>
Bump version to 0.5.7 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12756">#12756</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/d28c5afd14a9ae01f960bf812298065d3450a91f"><code>d28c5af</code></a>
[red-knot] Remove mentions of Ruff from the CLI help (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12752">#12752</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/f1de08c2a04b5cd78abba40c8d12e6ed71afc420"><code>f1de08c</code></a>
[red-knot] Merge the semantic and module-resolver crates (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12751">#12751</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/33e9a6a54e04d78f91a4787218a8eca1e5d196b8"><code>33e9a6a</code></a>
SIM110: <code>any()</code> is ~3x slower than the code it replaces (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12746">#12746</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/f577e03021e1e165a50a4a6f116229299018990e"><code>f577e03</code></a>
[ruff] Ignore empty tuples for
`incorrectly-parenthesized-tuple-in-subscript ...</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/f53733525c3fe31eca4d9ba6c3a9367c1e88de59"><code>f537335</code></a>
Remove all <code>useEffect</code> usages (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12659">#12659</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/2daa9143342237aced17e407909278ffc5cf3fed"><code>2daa914</code></a>
Gracefully handle errors in CLI (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12747">#12747</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/6d9205e346bfd58ab1811761dc3bad9c0cbed56f"><code>6d9205e</code></a>
[<code>ruff_linter</code>] - Use LibCST in
<code>adjust_indentation</code> for mixed whitespace (<a
href="https://redirect.github.com/astral-sh/ruff/issues/1">#1</a>...</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/df7345e118f456e43b04aefbbaaa253c16b62329"><code>df7345e</code></a>
Exit with an error if there are check failures (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12735">#12735</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/dc6aafecc2b0eb7dc44347051bb1077f3dd79c0d"><code>dc6aafe</code></a>
Setup tracing and document tracing usage (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12730">#12730</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/0.5.6...0.5.7">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.6&new-version=0.5.7)](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
kai687 committed Aug 13, 2024
2 parents 3f9e922 + d4382f2 commit 729adf7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
40 changes: 20 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pre-commit = [
{ version = "^3.5", python = ">=3.8,<3.9"},
{ version = "^3.6", python = ">=3.9,<=3.12"},
]
ruff = ">=0.5.1,<0.5.7"
ruff = ">=0.5.1,<0.5.8"

[tool.coverage.paths]
source = ["src"]
Expand Down

0 comments on commit 729adf7

Please sign in to comment.