Skip to content

Python: Bump ruff from 0.4.4 to 0.4.5 in /python #6417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 28, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 27, 2024

Bumps ruff from 0.4.4 to 0.4.5.

Release notes

Sourced from ruff's releases.

v0.4.5

Changes

Ruff's language server is now in Beta

v0.4.5 marks the official Beta release of ruff server, an integrated language server built into Ruff. ruff server supports the same feature set as ruff-lsp, powering linting, formatting, and code fixes in Ruff's editor integrations -- but with superior performance and no installation required. We'd love your feedback!

You can enable ruff server in the VS Code extension today.

To read more about this exciting milestone, check out our blog post!

Rule changes

  • [flake8-future-annotations] Reword future-rewritable-type-annotation (FA100) message (#11381)
  • [pycodestyle] Consider soft keywords for E27 rules (#11446)
  • [pyflakes] Recommend adding unused import bindings to __all__ (#11314)
  • [pyflakes] Update documentation and deprecate ignore_init_module_imports (#11436)
  • [pyupgrade] Mark quotes as unnecessary for non-evaluated annotations (#11485)

Formatter

  • Avoid multiline quotes warning with quote-style = preserve (#11490)

Server

  • Support Jupyter Notebook files (#11206)
  • Support noqa comment code actions (#11276)
  • Fix automatic configuration reloading (#11492)
  • Fix several issues with configuration in Neovim and Helix (#11497)

CLI

  • Add --output-format as a CLI option for ruff config (#11438)

Bug fixes

  • Avoid PLE0237 for property with setter (#11377)
  • Avoid TCH005 for if stmt with elif/else block (#11376)
  • Avoid flagging __future__ annotations as required for non-evaluated type annotations (#11414)
  • Check for ruff executable in 'bin' directory as installed by 'pip install --target'. (#11450)
  • Sort edits prior to deduplicating in quotation fix (#11452)
  • Treat escaped newline as valid sequence (#11465)
  • [flake8-pie] Preserve parentheses in unnecessary-dict-kwargs (#11372)
  • [pylint] Ignore __slots__ with dynamic values (#11488)
  • [pylint] Remove try body from branch counting (#11487)
  • [refurb] Respect operator precedence in FURB110 (#11464)

Documentation

  • Add --preview to the README (#11395)

... (truncated)

Changelog

Sourced from ruff's changelog.

0.4.5

Ruff's language server is now in Beta

v0.4.5 marks the official Beta release of ruff server, an integrated language server built into Ruff. ruff server supports the same feature set as ruff-lsp, powering linting, formatting, and code fixes in Ruff's editor integrations -- but with superior performance and no installation required. We'd love your feedback!

You can enable ruff server in the VS Code extension today.

To read more about this exciting milestone, check out our blog post!

Rule changes

  • [flake8-future-annotations] Reword future-rewritable-type-annotation (FA100) message (#11381)
  • [pycodestyle] Consider soft keywords for E27 rules (#11446)
  • [pyflakes] Recommend adding unused import bindings to __all__ (#11314)
  • [pyflakes] Update documentation and deprecate ignore_init_module_imports (#11436)
  • [pyupgrade] Mark quotes as unnecessary for non-evaluated annotations (#11485)

Formatter

  • Avoid multiline quotes warning with quote-style = preserve (#11490)

Server

  • Support Jupyter Notebook files (#11206)
  • Support noqa comment code actions (#11276)
  • Fix automatic configuration reloading (#11492)
  • Fix several issues with configuration in Neovim and Helix (#11497)

CLI

  • Add --output-format as a CLI option for ruff config (#11438)

Bug fixes

  • Avoid PLE0237 for property with setter (#11377)
  • Avoid TCH005 for if stmt with elif/else block (#11376)
  • Avoid flagging __future__ annotations as required for non-evaluated type annotations (#11414)
  • Check for ruff executable in 'bin' directory as installed by 'pip install --target'. (#11450)
  • Sort edits prior to deduplicating in quotation fix (#11452)
  • Treat escaped newline as valid sequence (#11465)
  • [flake8-pie] Preserve parentheses in unnecessary-dict-kwargs (#11372)
  • [pylint] Ignore __slots__ with dynamic values (#11488)
  • [pylint] Remove try body from branch counting (#11487)
  • [refurb] Respect operator precedence in FURB110 (#11464)

Documentation

... (truncated)

Commits

Dependabot compatibility score

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 commands and options

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)

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.4 to 0.4.5.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@v0.4.4...v0.4.5)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from a team as a code owner May 27, 2024 22:21
@dependabot dependabot bot added dependencies Pull requests that update a dependency file. Used by Dependabot. python Pull requests for the Python Semantic Kernel labels May 27, 2024
@github-actions github-actions bot changed the title Bump ruff from 0.4.4 to 0.4.5 in /python Python: Bump ruff from 0.4.4 to 0.4.5 in /python May 27, 2024
@markwallace-microsoft
Copy link
Member

markwallace-microsoft commented May 27, 2024

Py3.10 Test Coverage

Python 3.10 Test Coverage Report •
FileStmtsMissCoverMissing
TOTAL607787086% 
report-only-changed-files is enabled. No files were changed during this commit :)

Python 3.10 Unit Test Overview

Tests Skipped Failures Errors Time
1375 1 💤 0 ❌ 0 🔥 14.064s ⏱️

@moonbox3 moonbox3 enabled auto-merge May 28, 2024 13:24
@moonbox3 moonbox3 added this pull request to the merge queue May 28, 2024
Merged via the queue into main with commit d8674bd May 28, 2024
25 checks passed
@moonbox3 moonbox3 deleted the dependabot/pip/python/ruff-0.4.5 branch May 28, 2024 13:41
LudoCorporateShark pushed a commit to LudoCorporateShark/semantic-kernel that referenced this pull request Aug 25, 2024
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.4 to 0.4.5.
<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.5</h2>
<h2>Changes</h2>
<h3>Ruff's language server is now in Beta</h3>
<p><code>v0.4.5</code> marks the official Beta release of <code>ruff
server</code>, an integrated language server built into Ruff. <code>ruff
server</code> supports the same feature set as <code>ruff-lsp</code>,
powering linting, formatting, and code fixes in Ruff's editor
integrations -- but with superior performance and no installation
required. We'd love your feedback!</p>
<p>You can enable <code>ruff server</code> in the <a
href="https://github.com/astral-sh/ruff-vscode?tab=readme-ov-file#enabling-the-rust-based-language-server">VS
Code extension</a> today.</p>
<p>To read more about this exciting milestone, check out our <a
href="https://astral.sh/blog/ruff-v0.4.5">blog post</a>!</p>
<h3>Rule changes</h3>
<ul>
<li>[<code>flake8-future-annotations</code>] Reword
<code>future-rewritable-type-annotation</code> (<code>FA100</code>)
message (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11381">#11381</a>)</li>
<li>[<code>pycodestyle</code>] Consider soft keywords for
<code>E27</code> rules (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11446">#11446</a>)</li>
<li>[<code>pyflakes</code>] Recommend adding unused import bindings to
<code>__all__</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11314">#11314</a>)</li>
<li>[<code>pyflakes</code>] Update documentation and deprecate
<code>ignore_init_module_imports</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11436">#11436</a>)</li>
<li>[<code>pyupgrade</code>] Mark quotes as unnecessary for
non-evaluated annotations (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11485">#11485</a>)</li>
</ul>
<h3>Formatter</h3>
<ul>
<li>Avoid multiline quotes warning with <code>quote-style =
preserve</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11490">#11490</a>)</li>
</ul>
<h3>Server</h3>
<ul>
<li>Support Jupyter Notebook files (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11206">#11206</a>)</li>
<li>Support <code>noqa</code> comment code actions (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11276">#11276</a>)</li>
<li>Fix automatic configuration reloading (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11492">#11492</a>)</li>
<li>Fix several issues with configuration in Neovim and Helix (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11497">#11497</a>)</li>
</ul>
<h3>CLI</h3>
<ul>
<li>Add <code>--output-format</code> as a CLI option for <code>ruff
config</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11438">#11438</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Avoid <code>PLE0237</code> for property with setter (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11377">#11377</a>)</li>
<li>Avoid <code>TCH005</code> for <code>if</code> stmt with
<code>elif</code>/<code>else</code> block (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11376">#11376</a>)</li>
<li>Avoid flagging <code>__future__</code> annotations as required for
non-evaluated type annotations (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11414">#11414</a>)</li>
<li>Check for ruff executable in 'bin' directory as installed by 'pip
install --target'. (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11450">#11450</a>)</li>
<li>Sort edits prior to deduplicating in quotation fix (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11452">#11452</a>)</li>
<li>Treat escaped newline as valid sequence (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11465">#11465</a>)</li>
<li>[<code>flake8-pie</code>] Preserve parentheses in
<code>unnecessary-dict-kwargs</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11372">#11372</a>)</li>
<li>[<code>pylint</code>] Ignore <code>__slots__</code> with dynamic
values (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11488">#11488</a>)</li>
<li>[<code>pylint</code>] Remove <code>try</code> body from branch
counting (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11487">#11487</a>)</li>
<li>[<code>refurb</code>] Respect operator precedence in
<code>FURB110</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11464">#11464</a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li>Add <code>--preview</code> to the README (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11395">#11395</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.4.5</h2>
<h3>Ruff's language server is now in Beta</h3>
<p><code>v0.4.5</code> marks the official Beta release of <code>ruff
server</code>, an integrated language server built into Ruff.
<code>ruff server</code> supports the same feature set as
<code>ruff-lsp</code>, powering linting, formatting, and
code fixes in Ruff's editor integrations -- but with superior
performance and
no installation required. We'd love your feedback!</p>
<p>You can enable <code>ruff server</code> in the <a
href="https://github.com/astral-sh/ruff-vscode?tab=readme-ov-file#enabling-the-rust-based-language-server">VS
Code extension</a> today.</p>
<p>To read more about this exciting milestone, check out our <a
href="https://astral.sh/blog/ruff-v0.4.5">blog post</a>!</p>
<h3>Rule changes</h3>
<ul>
<li>[<code>flake8-future-annotations</code>] Reword
<code>future-rewritable-type-annotation</code> (<code>FA100</code>)
message (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11381">#11381</a>)</li>
<li>[<code>pycodestyle</code>] Consider soft keywords for
<code>E27</code> rules (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11446">#11446</a>)</li>
<li>[<code>pyflakes</code>] Recommend adding unused import bindings to
<code>__all__</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11314">#11314</a>)</li>
<li>[<code>pyflakes</code>] Update documentation and deprecate
<code>ignore_init_module_imports</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11436">#11436</a>)</li>
<li>[<code>pyupgrade</code>] Mark quotes as unnecessary for
non-evaluated annotations (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11485">#11485</a>)</li>
</ul>
<h3>Formatter</h3>
<ul>
<li>Avoid multiline quotes warning with <code>quote-style =
preserve</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11490">#11490</a>)</li>
</ul>
<h3>Server</h3>
<ul>
<li>Support Jupyter Notebook files (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11206">#11206</a>)</li>
<li>Support <code>noqa</code> comment code actions (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11276">#11276</a>)</li>
<li>Fix automatic configuration reloading (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11492">#11492</a>)</li>
<li>Fix several issues with configuration in Neovim and Helix (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11497">#11497</a>)</li>
</ul>
<h3>CLI</h3>
<ul>
<li>Add <code>--output-format</code> as a CLI option for <code>ruff
config</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11438">#11438</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Avoid <code>PLE0237</code> for property with setter (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11377">#11377</a>)</li>
<li>Avoid <code>TCH005</code> for <code>if</code> stmt with
<code>elif</code>/<code>else</code> block (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11376">#11376</a>)</li>
<li>Avoid flagging <code>__future__</code> annotations as required for
non-evaluated type annotations (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11414">#11414</a>)</li>
<li>Check for ruff executable in 'bin' directory as installed by 'pip
install --target'. (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11450">#11450</a>)</li>
<li>Sort edits prior to deduplicating in quotation fix (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11452">#11452</a>)</li>
<li>Treat escaped newline as valid sequence (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11465">#11465</a>)</li>
<li>[<code>flake8-pie</code>] Preserve parentheses in
<code>unnecessary-dict-kwargs</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11372">#11372</a>)</li>
<li>[<code>pylint</code>] Ignore <code>__slots__</code> with dynamic
values (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11488">#11488</a>)</li>
<li>[<code>pylint</code>] Remove <code>try</code> body from branch
counting (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11487">#11487</a>)</li>
<li>[<code>refurb</code>] Respect operator precedence in
<code>FURB110</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11464">#11464</a>)</li>
</ul>
<h3>Documentation</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/astral-sh/ruff/commit/550aa871d32b53a2f042fb0e7fea1080eadfa11d"><code>550aa87</code></a>
Bump version to <code>v0.4.5</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11502">#11502</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/3c22a3bdccf703e42fc2778db5857bb688422c8c"><code>3c22a3b</code></a>
Minor edits to <code>ruff server</code> docs (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11500">#11500</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/6263923915b5678fd496f7646ef8d2eca9b23607"><code>6263923</code></a>
Update documentation for <code>ruff server</code> with new migration
guide (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11499">#11499</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/94abea4b0822f99f97e01d9adadddc82acd8d8b8"><code>94abea4</code></a>
<code>ruff server</code>: Fix multiple issues with Neovim and Helix (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11497">#11497</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/519a65007fe2ff714103fb023aacb49a71551a7f"><code>519a650</code></a>
Mark quotes as unnecessary for non-evaluated annotations (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11485">#11485</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/573facd2bad5d43abed7c9da903f9cf243d29d58"><code>573facd</code></a>
Fix automatic configuration reloading for text and notebook documents
(<a
href="https://redirect.github.com/astral-sh/ruff/issues/11492">#11492</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/3cb2e677aa0b88075f248ea44c5d2e844b82a0a7"><code>3cb2e67</code></a>
<code>ruff.applyFormat</code> now formats an entire notebook document
(<a
href="https://redirect.github.com/astral-sh/ruff/issues/11493">#11493</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/f0046ab28e67c5d6b3ce5951817f715333b4538d"><code>f0046ab</code></a>
Move <code>has_comments</code> to <code>CommentRanges</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11495">#11495</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/5bb9720a10618ed9cecc401df231e360710780ee"><code>5bb9720</code></a>
Avoid multiline quotes warning with <code>quote-style = preserve</code>
(<a
href="https://redirect.github.com/astral-sh/ruff/issues/11490">#11490</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/9ff18bf9d34846e2b6182d72609ba32131e2b356"><code>9ff18bf</code></a>
Simplify Neovim docs for the LSP setup (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11489">#11489</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/v0.4.4...v0.4.5">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.4&new-version=0.4.5)](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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Evan Mattson <35585003+moonbox3@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file. Used by Dependabot. python Pull requests for the Python Semantic Kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants