[PR #243] [CLOSED] Bump ruff from 0.5.5 to 0.5.6 #430

Closed
opened 2026-02-15 16:30:23 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama-python/pull/243
Author: @dependabot[bot]
Created: 8/2/2024
Status: Closed

Base: mainHead: dependabot/pip/ruff-0.5.6


📝 Commits (1)

  • 188c683 Bump ruff from 0.5.5 to 0.5.6

📊 Changes

1 file changed (+19 additions, -19 deletions)

View changed files

📝 poetry.lock (+19 -19)

📄 Description

Bumps ruff from 0.5.5 to 0.5.6.

Release notes

Sourced from ruff's releases.

0.5.6

Release Notes

Ruff 0.5.6 automatically enables linting and formatting of notebooks in preview mode. You can opt-out of this behavior by adding *.ipynb to the extend-exclude setting.

[tool.ruff]
extend-exclude = ["*.ipynb"]

Preview features

  • Enable notebooks by default in preview mode (#12621)
  • [flake8-builtins] Implement import, lambda, and module shadowing (#12546)
  • [pydoclint] Add docstring-missing-returns (DOC201) and docstring-extraneous-returns (DOC202) (#12485)

Rule changes

  • [flake8-return] Exempt cached properties and other property-like decorators from explicit return rule (RET501) (#12563)

Server

  • Make server panic hook more error resilient (#12610)
  • Use $/logTrace for server trace logs in Zed and VS Code (#12564)
  • Keep track of deleted cells for reorder change request (#12575)

Configuration

  • [flake8-implicit-str-concat] Always allow explicit multi-line concatenations when implicit concatenations are banned (#12532)

Bug fixes

  • [flake8-async] Avoid flagging asyncio.timeouts as unused when the context manager includes asyncio.TaskGroup (#12605)
  • [flake8-slots] Avoid recommending __slots__ for classes that inherit from more than namedtuple (#12531)
  • [isort] Avoid marking required imports as unused (#12537)
  • [isort] Preserve trailing inline comments on import-from statements (#12498)
  • [pycodestyle] Add newlines before comments (E305) (#12606)
  • [pycodestyle] Don't attach comments with mismatched indents (#12604)
  • [pyflakes] Fix preview-mode bugs in F401 when attempting to autofix unused first-party submodule imports in an __init__.py file (#12569)
  • [pylint] Respect start index in unnecessary-list-index-lookup (#12603)
  • [pyupgrade] Avoid recommending no-argument super in slots=True dataclasses (#12530)
  • [pyupgrade] Use colon rather than dot formatting for integer-only types (#12534)
  • Fix NFKC normalization bug when removing unused imports (#12571)

Other changes

  • Consider more stdlib decorators to be property-like (#12583)
  • Improve handling of metaclasses in various linter rules (#12579)
  • Improve consistency between linter rules in determining whether a function is property (#12581)

... (truncated)

Changelog

Sourced from ruff's changelog.

0.5.6

Ruff 0.5.6 automatically enables linting and formatting of notebooks in preview mode. You can opt-out of this behavior by adding *.ipynb to the extend-exclude setting.

[tool.ruff]
extend-exclude = ["*.ipynb"]

Preview features

  • Enable notebooks by default in preview mode (#12621)
  • [flake8-builtins] Implement import, lambda, and module shadowing (#12546)
  • [pydoclint] Add docstring-missing-returns (DOC201) and docstring-extraneous-returns (DOC202) (#12485)

Rule changes

  • [flake8-return] Exempt cached properties and other property-like decorators from explicit return rule (RET501) (#12563)

Server

  • Make server panic hook more error resilient (#12610)
  • Use $/logTrace for server trace logs in Zed and VS Code (#12564)
  • Keep track of deleted cells for reorder change request (#12575)

Configuration

  • [flake8-implicit-str-concat] Always allow explicit multi-line concatenations when implicit concatenations are banned (#12532)

Bug fixes

  • [flake8-async] Avoid flagging asyncio.timeouts as unused when the context manager includes asyncio.TaskGroup (#12605)
  • [flake8-slots] Avoid recommending __slots__ for classes that inherit from more than namedtuple (#12531)
  • [isort] Avoid marking required imports as unused (#12537)
  • [isort] Preserve trailing inline comments on import-from statements (#12498)
  • [pycodestyle] Add newlines before comments (E305) (#12606)
  • [pycodestyle] Don't attach comments with mismatched indents (#12604)
  • [pyflakes] Fix preview-mode bugs in F401 when attempting to autofix unused first-party submodule imports in an __init__.py file (#12569)
  • [pylint] Respect start index in unnecessary-list-index-lookup (#12603)
  • [pyupgrade] Avoid recommending no-argument super in slots=True dataclasses (#12530)
  • [pyupgrade] Use colon rather than dot formatting for integer-only types (#12534)
  • Fix NFKC normalization bug when removing unused imports (#12571)

Other changes

  • Consider more stdlib decorators to be property-like (#12583)
  • Improve handling of metaclasses in various linter rules (#12579)
  • Improve consistency between linter rules in determining whether a function is property (#12581)
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)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama-python/pull/243 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 8/2/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `dependabot/pip/ruff-0.5.6` --- ### 📝 Commits (1) - [`188c683`](https://github.com/ollama/ollama-python/commit/188c683b11c7e7a207ed277c7a63c6bd8ceb50b5) Bump ruff from 0.5.5 to 0.5.6 ### 📊 Changes **1 file changed** (+19 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `poetry.lock` (+19 -19) </details> ### 📄 Description Bumps [ruff](https://github.com/astral-sh/ruff) from 0.5.5 to 0.5.6. <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.6</h2> <h2>Release Notes</h2> <p>Ruff 0.5.6 automatically enables linting and formatting of notebooks in <em>preview mode</em>. You can opt-out of this behavior by adding <code>*.ipynb</code> to the <code>extend-exclude</code> setting.</p> <pre lang="toml"><code>[tool.ruff] extend-exclude = [&quot;*.ipynb&quot;] </code></pre> <h3>Preview features</h3> <ul> <li>Enable notebooks by default in preview mode (<a href="https://redirect.github.com/astral-sh/ruff/pull/12621">#12621</a>)</li> <li>[<code>flake8-builtins</code>] Implement import, lambda, and module shadowing (<a href="https://redirect.github.com/astral-sh/ruff/pull/12546">#12546</a>)</li> <li>[<code>pydoclint</code>] Add <code>docstring-missing-returns</code> (<code>DOC201</code>) and <code>docstring-extraneous-returns</code> (<code>DOC202</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12485">#12485</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-return</code>] Exempt cached properties and other property-like decorators from explicit return rule (<code>RET501</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12563">#12563</a>)</li> </ul> <h3>Server</h3> <ul> <li>Make server panic hook more error resilient (<a href="https://redirect.github.com/astral-sh/ruff/pull/12610">#12610</a>)</li> <li>Use <code>$/logTrace</code> for server trace logs in Zed and VS Code (<a href="https://redirect.github.com/astral-sh/ruff/pull/12564">#12564</a>)</li> <li>Keep track of deleted cells for reorder change request (<a href="https://redirect.github.com/astral-sh/ruff/pull/12575">#12575</a>)</li> </ul> <h3>Configuration</h3> <ul> <li>[<code>flake8-implicit-str-concat</code>] Always allow explicit multi-line concatenations when implicit concatenations are banned (<a href="https://redirect.github.com/astral-sh/ruff/pull/12532">#12532</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>flake8-async</code>] Avoid flagging <code>asyncio.timeout</code>s as unused when the context manager includes <code>asyncio.TaskGroup</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12605">#12605</a>)</li> <li>[<code>flake8-slots</code>] Avoid recommending <code>__slots__</code> for classes that inherit from more than <code>namedtuple</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12531">#12531</a>)</li> <li>[<code>isort</code>] Avoid marking required imports as unused (<a href="https://redirect.github.com/astral-sh/ruff/pull/12537">#12537</a>)</li> <li>[<code>isort</code>] Preserve trailing inline comments on import-from statements (<a href="https://redirect.github.com/astral-sh/ruff/pull/12498">#12498</a>)</li> <li>[<code>pycodestyle</code>] Add newlines before comments (<code>E305</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12606">#12606</a>)</li> <li>[<code>pycodestyle</code>] Don't attach comments with mismatched indents (<a href="https://redirect.github.com/astral-sh/ruff/pull/12604">#12604</a>)</li> <li>[<code>pyflakes</code>] Fix preview-mode bugs in <code>F401</code> when attempting to autofix unused first-party submodule imports in an <code>__init__.py</code> file (<a href="https://redirect.github.com/astral-sh/ruff/pull/12569">#12569</a>)</li> <li>[<code>pylint</code>] Respect start index in <code>unnecessary-list-index-lookup</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12603">#12603</a>)</li> <li>[<code>pyupgrade</code>] Avoid recommending no-argument super in <code>slots=True</code> dataclasses (<a href="https://redirect.github.com/astral-sh/ruff/pull/12530">#12530</a>)</li> <li>[<code>pyupgrade</code>] Use colon rather than dot formatting for integer-only types (<a href="https://redirect.github.com/astral-sh/ruff/pull/12534">#12534</a>)</li> <li>Fix NFKC normalization bug when removing unused imports (<a href="https://redirect.github.com/astral-sh/ruff/pull/12571">#12571</a>)</li> </ul> <h3>Other changes</h3> <ul> <li>Consider more stdlib decorators to be property-like (<a href="https://redirect.github.com/astral-sh/ruff/pull/12583">#12583</a>)</li> <li>Improve handling of metaclasses in various linter rules (<a href="https://redirect.github.com/astral-sh/ruff/pull/12579">#12579</a>)</li> <li>Improve consistency between linter rules in determining whether a function is property (<a href="https://redirect.github.com/astral-sh/ruff/pull/12581">#12581</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.6</h2> <p>Ruff 0.5.6 automatically enables linting and formatting of notebooks in <em>preview mode</em>. You can opt-out of this behavior by adding <code>*.ipynb</code> to the <code>extend-exclude</code> setting.</p> <pre lang="toml"><code>[tool.ruff] extend-exclude = [&quot;*.ipynb&quot;] </code></pre> <h3>Preview features</h3> <ul> <li>Enable notebooks by default in preview mode (<a href="https://redirect.github.com/astral-sh/ruff/pull/12621">#12621</a>)</li> <li>[<code>flake8-builtins</code>] Implement import, lambda, and module shadowing (<a href="https://redirect.github.com/astral-sh/ruff/pull/12546">#12546</a>)</li> <li>[<code>pydoclint</code>] Add <code>docstring-missing-returns</code> (<code>DOC201</code>) and <code>docstring-extraneous-returns</code> (<code>DOC202</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12485">#12485</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-return</code>] Exempt cached properties and other property-like decorators from explicit return rule (<code>RET501</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12563">#12563</a>)</li> </ul> <h3>Server</h3> <ul> <li>Make server panic hook more error resilient (<a href="https://redirect.github.com/astral-sh/ruff/pull/12610">#12610</a>)</li> <li>Use <code>$/logTrace</code> for server trace logs in Zed and VS Code (<a href="https://redirect.github.com/astral-sh/ruff/pull/12564">#12564</a>)</li> <li>Keep track of deleted cells for reorder change request (<a href="https://redirect.github.com/astral-sh/ruff/pull/12575">#12575</a>)</li> </ul> <h3>Configuration</h3> <ul> <li>[<code>flake8-implicit-str-concat</code>] Always allow explicit multi-line concatenations when implicit concatenations are banned (<a href="https://redirect.github.com/astral-sh/ruff/pull/12532">#12532</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>flake8-async</code>] Avoid flagging <code>asyncio.timeout</code>s as unused when the context manager includes <code>asyncio.TaskGroup</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12605">#12605</a>)</li> <li>[<code>flake8-slots</code>] Avoid recommending <code>__slots__</code> for classes that inherit from more than <code>namedtuple</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12531">#12531</a>)</li> <li>[<code>isort</code>] Avoid marking required imports as unused (<a href="https://redirect.github.com/astral-sh/ruff/pull/12537">#12537</a>)</li> <li>[<code>isort</code>] Preserve trailing inline comments on import-from statements (<a href="https://redirect.github.com/astral-sh/ruff/pull/12498">#12498</a>)</li> <li>[<code>pycodestyle</code>] Add newlines before comments (<code>E305</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12606">#12606</a>)</li> <li>[<code>pycodestyle</code>] Don't attach comments with mismatched indents (<a href="https://redirect.github.com/astral-sh/ruff/pull/12604">#12604</a>)</li> <li>[<code>pyflakes</code>] Fix preview-mode bugs in <code>F401</code> when attempting to autofix unused first-party submodule imports in an <code>__init__.py</code> file (<a href="https://redirect.github.com/astral-sh/ruff/pull/12569">#12569</a>)</li> <li>[<code>pylint</code>] Respect start index in <code>unnecessary-list-index-lookup</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12603">#12603</a>)</li> <li>[<code>pyupgrade</code>] Avoid recommending no-argument super in <code>slots=True</code> dataclasses (<a href="https://redirect.github.com/astral-sh/ruff/pull/12530">#12530</a>)</li> <li>[<code>pyupgrade</code>] Use colon rather than dot formatting for integer-only types (<a href="https://redirect.github.com/astral-sh/ruff/pull/12534">#12534</a>)</li> <li>Fix NFKC normalization bug when removing unused imports (<a href="https://redirect.github.com/astral-sh/ruff/pull/12571">#12571</a>)</li> </ul> <h3>Other changes</h3> <ul> <li>Consider more stdlib decorators to be property-like (<a href="https://redirect.github.com/astral-sh/ruff/pull/12583">#12583</a>)</li> <li>Improve handling of metaclasses in various linter rules (<a href="https://redirect.github.com/astral-sh/ruff/pull/12579">#12579</a>)</li> <li>Improve consistency between linter rules in determining whether a function is property (<a href="https://redirect.github.com/astral-sh/ruff/pull/12581">#12581</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/astral-sh/ruff/commit/da824ba316bd11de349479aaab06b6ab06560d38"><code>da824ba</code></a> Release Ruff 0.5.6 (<a href="https://redirect.github.com/astral-sh/ruff/issues/12629">#12629</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/012198a1b0f4870902992218c04aac3f07ee76c8"><code>012198a</code></a> Enable notebooks by default in preview mode (<a href="https://redirect.github.com/astral-sh/ruff/issues/12621">#12621</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/fbab04fbe1ea9ab08540c4e6a0b3ab7b9e19d637"><code>fbab04f</code></a> [red-knot] Allow multiple <code>site-packages</code> search paths (<a href="https://redirect.github.com/astral-sh/ruff/issues/12609">#12609</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/9aa43d5f911f5f46b77bf4d9b72b52ad2d4b9e11"><code>9aa43d5</code></a> Separate <code>red_knot</code> into CLI and <code>red_knot_workspace</code> crates (<a href="https://redirect.github.com/astral-sh/ruff/issues/12623">#12623</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/966563c79b2810371728c302fef2e97569ba5ba0"><code>966563c</code></a> Add tests for hard and soft links (<a href="https://redirect.github.com/astral-sh/ruff/issues/12590">#12590</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/27edadec2953d8816a742f32c41695d1b03534c6"><code>27edade</code></a> Make server panic hook more error resilient (<a href="https://redirect.github.com/astral-sh/ruff/issues/12610">#12610</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/2e2b1b460f4de25e630cde69b4b49577bc5134b4"><code>2e2b1b4</code></a> Fix a typo in <code>docs/editors/settings.md</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/12614">#12614</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/a3e67abf4ce7b519152c03ff441424c18e4c18ee"><code>a3e67ab</code></a> Add newlines before comments in E305 (<a href="https://redirect.github.com/astral-sh/ruff/issues/12606">#12606</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/ee0518e8f71cb0bc4d5cc3afc28a54a0bbc78247"><code>ee0518e</code></a> [red-knot] implement attribute of union (<a href="https://redirect.github.com/astral-sh/ruff/issues/12601">#12601</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/d774a3bd48bbf8b697190b7d68251195cdc6c64b"><code>d774a3b</code></a> Avoid unused async when context manager includes <code>TaskGroup</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/12605">#12605</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/0.5.5...0.5.6">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.5&new-version=0.5.6)](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> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 16:30:23 -05:00
yindo closed this issue 2026-02-15 16:30:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#430