[PR #261] [MERGED] Bump ruff from 0.5.5 to 0.6.2 #437

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama-python/pull/261
Author: @dependabot[bot]
Created: 8/22/2024
Status: Merged
Merged: 8/27/2024
Merged by: @dependabot[bot]

Base: mainHead: dependabot/pip/ruff-0.6.2


📝 Commits (1)

  • 9c34d81 Bump ruff from 0.5.5 to 0.6.2

📊 Changes

2 files changed (+21 additions, -21 deletions)

View changed files

📝 poetry.lock (+20 -20)
📝 pyproject.toml (+1 -1)

📄 Description

Bumps ruff from 0.5.5 to 0.6.2.

Release notes

Sourced from ruff's releases.

0.6.2

Release Notes

Preview features

  • [flake8-simplify] Extend open-file-with-context-handler to work with other standard-library IO modules (SIM115) (#12959)
  • [ruff] Avoid unused-async for functions with FastAPI route decorator (RUF029) (#12938)
  • [ruff] Ignore fstring-missing-syntax (RUF027) for fastAPI paths (#12939)
  • [ruff] Implement check for Decimal called with a float literal (RUF032) (#12909)

Rule changes

  • [flake8-bugbear] Update diagnostic message when expression is at the end of function (B015) (#12944)
  • [flake8-pyi] Skip type annotations in string-or-bytes-too-long (PYI053) (#13002)
  • [flake8-type-checking] Always recognise relative imports as first-party (#12994)
  • [flake8-unused-arguments] Ignore unused arguments on stub functions (ARG001) (#12966)
  • [pylint] Ignore augmented assignment for self-cls-assignment (PLW0642) (#12957)

Server

  • Show full context in error log messages (#13029)

Bug fixes

  • [pep8-naming] Don't flag from imports following conventional import names (N817) (#12946)
  • [pylint] - Allow __new__ methods to have cls as their first argument even if decorated with @staticmethod for bad-staticmethod-argument (PLW0211) (#12958)

Documentation

  • Add hyperfine installation instructions; update hyperfine code samples (#13034)
  • Expand note to use Ruff with other language server in Kate (#12806)
  • Update example for PT001 as per the new default behavior (#13019)
  • [perflint] Improve docs for try-except-in-loop (PERF203) (#12947)
  • [pydocstyle] Add reference to lint.pydocstyle.ignore-decorators setting to rule docs (#12996)

Contributors

... (truncated)

Changelog

Sourced from ruff's changelog.

0.6.2

Preview features

  • [flake8-simplify] Extend open-file-with-context-handler to work with other standard-library IO modules (SIM115) (#12959)
  • [ruff] Avoid unused-async for functions with FastAPI route decorator (RUF029) (#12938)
  • [ruff] Ignore fstring-missing-syntax (RUF027) for fastAPI paths (#12939)
  • [ruff] Implement check for Decimal called with a float literal (RUF032) (#12909)

Rule changes

  • [flake8-bugbear] Update diagnostic message when expression is at the end of function (B015) (#12944)
  • [flake8-pyi] Skip type annotations in string-or-bytes-too-long (PYI053) (#13002)
  • [flake8-type-checking] Always recognise relative imports as first-party (#12994)
  • [flake8-unused-arguments] Ignore unused arguments on stub functions (ARG001) (#12966)
  • [pylint] Ignore augmented assignment for self-cls-assignment (PLW0642) (#12957)

Server

  • Show full context in error log messages (#13029)

Bug fixes

  • [pep8-naming] Don't flag from imports following conventional import names (N817) (#12946)
  • [pylint] - Allow __new__ methods to have cls as their first argument even if decorated with @staticmethod for bad-staticmethod-argument (PLW0211) (#12958)

Documentation

  • Add hyperfine installation instructions; update hyperfine code samples (#13034)
  • Expand note to use Ruff with other language server in Kate (#12806)
  • Update example for PT001 as per the new default behavior (#13019)
  • [perflint] Improve docs for try-except-in-loop (PERF203) (#12947)
  • [pydocstyle] Add reference to lint.pydocstyle.ignore-decorators setting to rule docs (#12996)

0.6.1

This is a hotfix release to address an issue with ruff-pre-commit. In v0.6, Ruff changed its behavior to lint and format Jupyter notebooks by default; however, due to an oversight, these files were still excluded by default if Ruff was run via pre-commit, leading to inconsistent behavior. This has now been fixed.

Preview features

  • [fastapi] Implement fast-api-unused-path-parameter (FAST003) (#12638)

Rule changes

  • [pylint] Rename too-many-positional to too-many-positional-arguments (R0917) (#12905)

... (truncated)

Commits
  • 02c4373 Bump version to 0.6.2 (#13056)
  • d37e2e5 [flake8-simplify] Extend open-file-with-context-handler to work with other ...
  • d1d0678 [red-knot] Remove notebook support from the server (#13040)
  • 93f9023 Add hyperfine installation instructions; update hyperfine code samples (#...
  • 8144a11 [red-knot] Add definition for with items (#12920)
  • dce87c2 Eagerly validate typeshed versions (#12786)
  • f873d2a Revert "Use the system allocator for codspeed benchmarks" (#13035)
  • ecd9e6a [red-knot] Improve the unresolved-import check (#13007)
  • 785c399 Use ZIP file size metadata to allocate string (#13032)
  • a35cdbb Fix various panicks when linting black/src (#13033)
  • Additional commits viewable in compare view

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 will merge this PR once it's up-to-date and CI passes on it, as requested by @mxyng.


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/261 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 8/22/2024 **Status:** ✅ Merged **Merged:** 8/27/2024 **Merged by:** [@dependabot[bot]](https://github.com/apps/dependabot) **Base:** `main` ← **Head:** `dependabot/pip/ruff-0.6.2` --- ### 📝 Commits (1) - [`9c34d81`](https://github.com/ollama/ollama-python/commit/9c34d810ab80d89899b31e876e352c325fa1ab6f) Bump ruff from 0.5.5 to 0.6.2 ### 📊 Changes **2 files changed** (+21 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `poetry.lock` (+20 -20) 📝 `pyproject.toml` (+1 -1) </details> ### 📄 Description Bumps [ruff](https://github.com/astral-sh/ruff) from 0.5.5 to 0.6.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>0.6.2</h2> <h2>Release Notes</h2> <h3>Preview features</h3> <ul> <li>[<code>flake8-simplify</code>] Extend <code>open-file-with-context-handler</code> to work with other standard-library IO modules (<code>SIM115</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12959">#12959</a>)</li> <li>[<code>ruff</code>] Avoid <code>unused-async</code> for functions with FastAPI route decorator (<code>RUF029</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12938">#12938</a>)</li> <li>[<code>ruff</code>] Ignore <code>fstring-missing-syntax</code> (<code>RUF027</code>) for <code>fastAPI</code> paths (<a href="https://redirect.github.com/astral-sh/ruff/pull/12939">#12939</a>)</li> <li>[<code>ruff</code>] Implement check for Decimal called with a float literal (RUF032) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12909">#12909</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-bugbear</code>] Update diagnostic message when expression is at the end of function (<code>B015</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12944">#12944</a>)</li> <li>[<code>flake8-pyi</code>] Skip type annotations in <code>string-or-bytes-too-long</code> (<code>PYI053</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/13002">#13002</a>)</li> <li>[<code>flake8-type-checking</code>] Always recognise relative imports as first-party (<a href="https://redirect.github.com/astral-sh/ruff/pull/12994">#12994</a>)</li> <li>[<code>flake8-unused-arguments</code>] Ignore unused arguments on stub functions (<code>ARG001</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12966">#12966</a>)</li> <li>[<code>pylint</code>] Ignore augmented assignment for <code>self-cls-assignment</code> (<code>PLW0642</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12957">#12957</a>)</li> </ul> <h3>Server</h3> <ul> <li>Show full context in error log messages (<a href="https://redirect.github.com/astral-sh/ruff/pull/13029">#13029</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>pep8-naming</code>] Don't flag <code>from</code> imports following conventional import names (<code>N817</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12946">#12946</a>)</li> <li>[<code>pylint</code>] - Allow <code>__new__</code> methods to have <code>cls</code> as their first argument even if decorated with <code>@staticmethod</code> for <code>bad-staticmethod-argument</code> (<code>PLW0211</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12958">#12958</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Add <code>hyperfine</code> installation instructions; update <code>hyperfine</code> code samples (<a href="https://redirect.github.com/astral-sh/ruff/pull/13034">#13034</a>)</li> <li>Expand note to use Ruff with other language server in Kate (<a href="https://redirect.github.com/astral-sh/ruff/pull/12806">#12806</a>)</li> <li>Update example for <code>PT001</code> as per the new default behavior (<a href="https://redirect.github.com/astral-sh/ruff/pull/13019">#13019</a>)</li> <li>[<code>perflint</code>] Improve docs for <code>try-except-in-loop</code> (<code>PERF203</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12947">#12947</a>)</li> <li>[<code>pydocstyle</code>] Add reference to <code>lint.pydocstyle.ignore-decorators</code> setting to rule docs (<a href="https://redirect.github.com/astral-sh/ruff/pull/12996">#12996</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/FinchPowers"><code>@​FinchPowers</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/Skylion007"><code>@​Skylion007</code></a></li> <li><a href="https://github.com/TomerBin"><code>@​TomerBin</code></a></li> <li><a href="https://github.com/carljm"><code>@​carljm</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> <li><a href="https://github.com/diceroll123"><code>@​diceroll123</code></a></li> <li><a href="https://github.com/dsal3389"><code>@​dsal3389</code></a></li> <li><a href="https://github.com/dylwil3"><code>@​dylwil3</code></a></li> <li><a href="https://github.com/kbaskett248"><code>@​kbaskett248</code></a></li> <li><a href="https://github.com/lengau"><code>@​lengau</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.6.2</h2> <h3>Preview features</h3> <ul> <li>[<code>flake8-simplify</code>] Extend <code>open-file-with-context-handler</code> to work with other standard-library IO modules (<code>SIM115</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12959">#12959</a>)</li> <li>[<code>ruff</code>] Avoid <code>unused-async</code> for functions with FastAPI route decorator (<code>RUF029</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12938">#12938</a>)</li> <li>[<code>ruff</code>] Ignore <code>fstring-missing-syntax</code> (<code>RUF027</code>) for <code>fastAPI</code> paths (<a href="https://redirect.github.com/astral-sh/ruff/pull/12939">#12939</a>)</li> <li>[<code>ruff</code>] Implement check for Decimal called with a float literal (RUF032) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12909">#12909</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-bugbear</code>] Update diagnostic message when expression is at the end of function (<code>B015</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12944">#12944</a>)</li> <li>[<code>flake8-pyi</code>] Skip type annotations in <code>string-or-bytes-too-long</code> (<code>PYI053</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/13002">#13002</a>)</li> <li>[<code>flake8-type-checking</code>] Always recognise relative imports as first-party (<a href="https://redirect.github.com/astral-sh/ruff/pull/12994">#12994</a>)</li> <li>[<code>flake8-unused-arguments</code>] Ignore unused arguments on stub functions (<code>ARG001</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12966">#12966</a>)</li> <li>[<code>pylint</code>] Ignore augmented assignment for <code>self-cls-assignment</code> (<code>PLW0642</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12957">#12957</a>)</li> </ul> <h3>Server</h3> <ul> <li>Show full context in error log messages (<a href="https://redirect.github.com/astral-sh/ruff/pull/13029">#13029</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>[<code>pep8-naming</code>] Don't flag <code>from</code> imports following conventional import names (<code>N817</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12946">#12946</a>)</li> <li>[<code>pylint</code>] - Allow <code>__new__</code> methods to have <code>cls</code> as their first argument even if decorated with <code>@staticmethod</code> for <code>bad-staticmethod-argument</code> (<code>PLW0211</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12958">#12958</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Add <code>hyperfine</code> installation instructions; update <code>hyperfine</code> code samples (<a href="https://redirect.github.com/astral-sh/ruff/pull/13034">#13034</a>)</li> <li>Expand note to use Ruff with other language server in Kate (<a href="https://redirect.github.com/astral-sh/ruff/pull/12806">#12806</a>)</li> <li>Update example for <code>PT001</code> as per the new default behavior (<a href="https://redirect.github.com/astral-sh/ruff/pull/13019">#13019</a>)</li> <li>[<code>perflint</code>] Improve docs for <code>try-except-in-loop</code> (<code>PERF203</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12947">#12947</a>)</li> <li>[<code>pydocstyle</code>] Add reference to <code>lint.pydocstyle.ignore-decorators</code> setting to rule docs (<a href="https://redirect.github.com/astral-sh/ruff/pull/12996">#12996</a>)</li> </ul> <h2>0.6.1</h2> <p>This is a hotfix release to address an issue with <code>ruff-pre-commit</code>. In v0.6, Ruff changed its behavior to lint and format Jupyter notebooks by default; however, due to an oversight, these files were still excluded by default if Ruff was run via pre-commit, leading to inconsistent behavior. This has <a href="https://redirect.github.com/astral-sh/ruff-pre-commit/pull/96">now been fixed</a>.</p> <h3>Preview features</h3> <ul> <li>[<code>fastapi</code>] Implement <code>fast-api-unused-path-parameter</code> (<code>FAST003</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12638">#12638</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>pylint</code>] Rename <code>too-many-positional</code> to <code>too-many-positional-arguments</code> (<code>R0917</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12905">#12905</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/02c4373a4927657a8825d18ae8f0877806cd1f15"><code>02c4373</code></a> Bump version to 0.6.2 (<a href="https://redirect.github.com/astral-sh/ruff/issues/13056">#13056</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/d37e2e5d33deadc15bf4194216e08ce1528a638c"><code>d37e2e5</code></a> [<code>flake8-simplify</code>] Extend open-file-with-context-handler to work with other ...</li> <li><a href="https://github.com/astral-sh/ruff/commit/d1d067896c115405c87e4526395de207bf037809"><code>d1d0678</code></a> [red-knot] Remove notebook support from the server (<a href="https://redirect.github.com/astral-sh/ruff/issues/13040">#13040</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/93f9023ea38ddac7f33b487d938f47cc1333d567"><code>93f9023</code></a> Add <code>hyperfine</code> installation instructions; update <code>hyperfine</code> code samples (#...</li> <li><a href="https://github.com/astral-sh/ruff/commit/8144a11f98032a1f109f557fbd5c8379364230b6"><code>8144a11</code></a> [red-knot] Add definition for with items (<a href="https://redirect.github.com/astral-sh/ruff/issues/12920">#12920</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/dce87c21fdf73a58f3821cae5e71b9da234e29ce"><code>dce87c2</code></a> Eagerly validate typeshed versions (<a href="https://redirect.github.com/astral-sh/ruff/issues/12786">#12786</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/f873d2ac128a2f6897bf814a3b252454aa7be3e2"><code>f873d2a</code></a> Revert &quot;Use the system allocator for codspeed benchmarks&quot; (<a href="https://redirect.github.com/astral-sh/ruff/issues/13035">#13035</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/ecd9e6a650ef428be67bb0e28cb0c52d27eb2895"><code>ecd9e6a</code></a> [red-knot] Improve the <code>unresolved-import</code> check (<a href="https://redirect.github.com/astral-sh/ruff/issues/13007">#13007</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/785c39927bf5fe0b95fd5b2c8286783a04c4bf91"><code>785c399</code></a> Use ZIP file size metadata to allocate string (<a href="https://redirect.github.com/astral-sh/ruff/issues/13032">#13032</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/a35cdbb27519d91de6d35e76995d1c532e0cd60c"><code>a35cdbb</code></a> Fix various panicks when linting black/src (<a href="https://redirect.github.com/astral-sh/ruff/issues/13033">#13033</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/0.5.5...0.6.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.5.5&new-version=0.6.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 will merge this PR once it's up-to-date and CI passes on it, as requested by @mxyng. [//]: # (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:24 -05:00
yindo closed this issue 2026-02-15 16:30:24 -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#437