[PR #211] [MERGED] Bump ruff from 0.4.7 to 0.5.2 #414

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama-python/pull/211
Author: @dependabot[bot]
Created: 7/15/2024
Status: Merged
Merged: 7/18/2024
Merged by: @dependabot[bot]

Base: mainHead: dependabot/pip/ruff-0.5.2


📝 Commits (1)

  • 222c207 Bump ruff from 0.4.7 to 0.5.2

📊 Changes

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

View changed files

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

📄 Description

Bumps ruff from 0.4.7 to 0.5.2.

Release notes

Sourced from ruff's releases.

0.5.2

Release Notes

Preview features

  • Use space separator before parenthesized expressions in comprehensions with leading comments (#12282)
  • [flake8-async] Update ASYNC100 to include anyio and asyncio (#12221)
  • [flake8-async] Update ASYNC109 to include anyio and asyncio (#12236)
  • [flake8-async] Update ASYNC110 to include anyio and asyncio (#12261)
  • [flake8-async] Update ASYNC115 to include anyio and asyncio (#12262)
  • [flake8-async] Update ASYNC116 to include anyio and asyncio (#12266)

Rule changes

  • [flake8-return] Exempt properties from explicit return rule (RET501) (#12243)
  • [numpy] Add np.NAN-to-np.nan diagnostic (#12292)
  • [refurb] Make list-reverse-copy an unsafe fix (#12303)

Server

  • Consider include and extend-include settings in native server (#12252)
  • Include nested configurations in settings reloading (#12253)

CLI

  • Omit code frames for fixes with empty ranges (#12304)
  • Warn about formatter incompatibility for D203 (#12238)

Bug fixes

  • Make cache-write failures non-fatal on Windows (#12302)
  • Treat not operations as boolean tests (#12301)
  • [flake8-bandit] Avoid S310 violations for HTTP-safe f-strings (#12305)
  • [flake8-bandit] Support explicit string concatenations in S310 HTTP detection (#12315)
  • [flake8-bandit] fix S113 false positive for httpx without timeout argument (#12213)
  • [pycodestyle] Remove "non-obvious" allowance for E721 (#12300)
  • [pyflakes] Consider with blocks as single-item branches for redefinition analysis (#12311)
  • [refurb] Restrict forwarding for newline argument in open() calls to Python versions >= 3.10 (#12244)

Documentation

  • Update help and documentation to reflect --output-format full default (#12248)

Performance

  • Use more threads when discovering Python files (#12258)

Install ruff 0.5.2

Install prebuilt binaries via shell script

... (truncated)

Changelog

Sourced from ruff's changelog.

0.5.2

Preview features

  • Use space separator before parenthesized expressions in comprehensions with leading comments (#12282)
  • [flake8-async] Update ASYNC100 to include anyio and asyncio (#12221)
  • [flake8-async] Update ASYNC109 to include anyio and asyncio (#12236)
  • [flake8-async] Update ASYNC110 to include anyio and asyncio (#12261)
  • [flake8-async] Update ASYNC115 to include anyio and asyncio (#12262)
  • [flake8-async] Update ASYNC116 to include anyio and asyncio (#12266)

Rule changes

  • [flake8-return] Exempt properties from explicit return rule (RET501) (#12243)
  • [numpy] Add np.NAN-to-np.nan diagnostic (#12292)
  • [refurb] Make list-reverse-copy an unsafe fix (#12303)

Server

  • Consider include and extend-include settings in native server (#12252)
  • Include nested configurations in settings reloading (#12253)

CLI

  • Omit code frames for fixes with empty ranges (#12304)
  • Warn about formatter incompatibility for D203 (#12238)

Bug fixes

  • Make cache-write failures non-fatal on Windows (#12302)
  • Treat not operations as boolean tests (#12301)
  • [flake8-bandit] Avoid S310 violations for HTTP-safe f-strings (#12305)
  • [flake8-bandit] Support explicit string concatenations in S310 HTTP detection (#12315)
  • [flake8-bandit] fix S113 false positive for httpx without timeout argument (#12213)
  • [pycodestyle] Remove "non-obvious" allowance for E721 (#12300)
  • [pyflakes] Consider with blocks as single-item branches for redefinition analysis (#12311)
  • [refurb] Restrict forwarding for newline argument in open() calls to Python versions >= 3.10 (#12244)

Documentation

  • Update help and documentation to reflect --output-format full default (#12248)

Performance

  • Use more threads when discovering Python files (#12258)

0.5.1

Preview features

... (truncated)

Commits
  • dc8db1a Make some amendments to the v0.5.2 changelog (#12319)
  • 18c364d [flake8-bandit] Support explicit string concatenations in S310 HTTP detecti...
  • 7a7c601 Bump version to v0.5.2 (#12316)
  • 3bfbbbc Avoid allocation when validating HTTP and HTTPS prefixes (#12313)
  • 1a3ee45 [flake8-bandit] Avoid S310 violations for HTTP-safe f-strings (#12305)
  • 6584886 [refurb] Make list-reverse-copy an unsafe fix (#12303)
  • 456d6a2 Consider with blocks as single-item branches (#12311)
  • 940df67 Omit code frames for fixes with empty ranges (#12304)
  • e58713e Make cache-write failures non-fatal (#12302)
  • aa5c53b Remove 'non-obvious' allowance for E721 (#12300)
  • 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 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/211 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 7/15/2024 **Status:** ✅ Merged **Merged:** 7/18/2024 **Merged by:** [@dependabot[bot]](https://github.com/apps/dependabot) **Base:** `main` ← **Head:** `dependabot/pip/ruff-0.5.2` --- ### 📝 Commits (1) - [`222c207`](https://github.com/ollama/ollama-python/commit/222c2079c2709e2977f12182c25ddbad15c08dba) Bump ruff from 0.4.7 to 0.5.2 ### 📊 Changes **2 files changed** (+22 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `poetry.lock` (+21 -20) 📝 `pyproject.toml` (+1 -1) </details> ### 📄 Description Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.7 to 0.5.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.5.2</h2> <h2>Release Notes</h2> <h3>Preview features</h3> <ul> <li>Use <code>space</code> separator before parenthesized expressions in comprehensions with leading comments (<a href="https://redirect.github.com/astral-sh/ruff/pull/12282">#12282</a>)</li> <li>[<code>flake8-async</code>] Update <code>ASYNC100</code> to include <code>anyio</code> and <code>asyncio</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12221">#12221</a>)</li> <li>[<code>flake8-async</code>] Update <code>ASYNC109</code> to include <code>anyio</code> and <code>asyncio</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12236">#12236</a>)</li> <li>[<code>flake8-async</code>] Update <code>ASYNC110</code> to include <code>anyio</code> and <code>asyncio</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12261">#12261</a>)</li> <li>[<code>flake8-async</code>] Update <code>ASYNC115</code> to include <code>anyio</code> and <code>asyncio</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12262">#12262</a>)</li> <li>[<code>flake8-async</code>] Update <code>ASYNC116</code> to include <code>anyio</code> and <code>asyncio</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12266">#12266</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-return</code>] Exempt properties from explicit return rule (<code>RET501</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12243">#12243</a>)</li> <li>[<code>numpy</code>] Add <code>np.NAN</code>-to-<code>np.nan</code> diagnostic (<a href="https://redirect.github.com/astral-sh/ruff/pull/12292">#12292</a>)</li> <li>[<code>refurb</code>] Make <code>list-reverse-copy</code> an unsafe fix (<a href="https://redirect.github.com/astral-sh/ruff/pull/12303">#12303</a>)</li> </ul> <h3>Server</h3> <ul> <li>Consider <code>include</code> and <code>extend-include</code> settings in native server (<a href="https://redirect.github.com/astral-sh/ruff/pull/12252">#12252</a>)</li> <li>Include nested configurations in settings reloading (<a href="https://redirect.github.com/astral-sh/ruff/pull/12253">#12253</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Omit code frames for fixes with empty ranges (<a href="https://redirect.github.com/astral-sh/ruff/pull/12304">#12304</a>)</li> <li>Warn about formatter incompatibility for <code>D203</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12238">#12238</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Make cache-write failures non-fatal on Windows (<a href="https://redirect.github.com/astral-sh/ruff/pull/12302">#12302</a>)</li> <li>Treat <code>not</code> operations as boolean tests (<a href="https://redirect.github.com/astral-sh/ruff/pull/12301">#12301</a>)</li> <li>[<code>flake8-bandit</code>] Avoid <code>S310</code> violations for HTTP-safe f-strings (<a href="https://redirect.github.com/astral-sh/ruff/pull/12305">#12305</a>)</li> <li>[<code>flake8-bandit</code>] Support explicit string concatenations in S310 HTTP detection (<a href="https://redirect.github.com/astral-sh/ruff/pull/12315">#12315</a>)</li> <li>[<code>flake8-bandit</code>] fix S113 false positive for httpx without <code>timeout</code> argument (<a href="https://redirect.github.com/astral-sh/ruff/pull/12213">#12213</a>)</li> <li>[<code>pycodestyle</code>] Remove &quot;non-obvious&quot; allowance for E721 (<a href="https://redirect.github.com/astral-sh/ruff/pull/12300">#12300</a>)</li> <li>[<code>pyflakes</code>] Consider <code>with</code> blocks as single-item branches for redefinition analysis (<a href="https://redirect.github.com/astral-sh/ruff/pull/12311">#12311</a>)</li> <li>[<code>refurb</code>] Restrict forwarding for <code>newline</code> argument in <code>open()</code> calls to Python versions &gt;= 3.10 (<a href="https://redirect.github.com/astral-sh/ruff/pull/12244">#12244</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Update help and documentation to reflect <code>--output-format full</code> default (<a href="https://redirect.github.com/astral-sh/ruff/pull/12248">#12248</a>)</li> </ul> <h3>Performance</h3> <ul> <li>Use more threads when discovering Python files (<a href="https://redirect.github.com/astral-sh/ruff/pull/12258">#12258</a>)</li> </ul> <h2>Install ruff 0.5.2</h2> <h3>Install prebuilt binaries via shell script</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.5.2</h2> <h3>Preview features</h3> <ul> <li>Use <code>space</code> separator before parenthesized expressions in comprehensions with leading comments (<a href="https://redirect.github.com/astral-sh/ruff/pull/12282">#12282</a>)</li> <li>[<code>flake8-async</code>] Update <code>ASYNC100</code> to include <code>anyio</code> and <code>asyncio</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12221">#12221</a>)</li> <li>[<code>flake8-async</code>] Update <code>ASYNC109</code> to include <code>anyio</code> and <code>asyncio</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12236">#12236</a>)</li> <li>[<code>flake8-async</code>] Update <code>ASYNC110</code> to include <code>anyio</code> and <code>asyncio</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12261">#12261</a>)</li> <li>[<code>flake8-async</code>] Update <code>ASYNC115</code> to include <code>anyio</code> and <code>asyncio</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12262">#12262</a>)</li> <li>[<code>flake8-async</code>] Update <code>ASYNC116</code> to include <code>anyio</code> and <code>asyncio</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12266">#12266</a>)</li> </ul> <h3>Rule changes</h3> <ul> <li>[<code>flake8-return</code>] Exempt properties from explicit return rule (<code>RET501</code>) (<a href="https://redirect.github.com/astral-sh/ruff/pull/12243">#12243</a>)</li> <li>[<code>numpy</code>] Add <code>np.NAN</code>-to-<code>np.nan</code> diagnostic (<a href="https://redirect.github.com/astral-sh/ruff/pull/12292">#12292</a>)</li> <li>[<code>refurb</code>] Make <code>list-reverse-copy</code> an unsafe fix (<a href="https://redirect.github.com/astral-sh/ruff/pull/12303">#12303</a>)</li> </ul> <h3>Server</h3> <ul> <li>Consider <code>include</code> and <code>extend-include</code> settings in native server (<a href="https://redirect.github.com/astral-sh/ruff/pull/12252">#12252</a>)</li> <li>Include nested configurations in settings reloading (<a href="https://redirect.github.com/astral-sh/ruff/pull/12253">#12253</a>)</li> </ul> <h3>CLI</h3> <ul> <li>Omit code frames for fixes with empty ranges (<a href="https://redirect.github.com/astral-sh/ruff/pull/12304">#12304</a>)</li> <li>Warn about formatter incompatibility for <code>D203</code> (<a href="https://redirect.github.com/astral-sh/ruff/pull/12238">#12238</a>)</li> </ul> <h3>Bug fixes</h3> <ul> <li>Make cache-write failures non-fatal on Windows (<a href="https://redirect.github.com/astral-sh/ruff/pull/12302">#12302</a>)</li> <li>Treat <code>not</code> operations as boolean tests (<a href="https://redirect.github.com/astral-sh/ruff/pull/12301">#12301</a>)</li> <li>[<code>flake8-bandit</code>] Avoid <code>S310</code> violations for HTTP-safe f-strings (<a href="https://redirect.github.com/astral-sh/ruff/pull/12305">#12305</a>)</li> <li>[<code>flake8-bandit</code>] Support explicit string concatenations in S310 HTTP detection (<a href="https://redirect.github.com/astral-sh/ruff/pull/12315">#12315</a>)</li> <li>[<code>flake8-bandit</code>] fix S113 false positive for httpx without <code>timeout</code> argument (<a href="https://redirect.github.com/astral-sh/ruff/pull/12213">#12213</a>)</li> <li>[<code>pycodestyle</code>] Remove &quot;non-obvious&quot; allowance for E721 (<a href="https://redirect.github.com/astral-sh/ruff/pull/12300">#12300</a>)</li> <li>[<code>pyflakes</code>] Consider <code>with</code> blocks as single-item branches for redefinition analysis (<a href="https://redirect.github.com/astral-sh/ruff/pull/12311">#12311</a>)</li> <li>[<code>refurb</code>] Restrict forwarding for <code>newline</code> argument in <code>open()</code> calls to Python versions &gt;= 3.10 (<a href="https://redirect.github.com/astral-sh/ruff/pull/12244">#12244</a>)</li> </ul> <h3>Documentation</h3> <ul> <li>Update help and documentation to reflect <code>--output-format full</code> default (<a href="https://redirect.github.com/astral-sh/ruff/pull/12248">#12248</a>)</li> </ul> <h3>Performance</h3> <ul> <li>Use more threads when discovering Python files (<a href="https://redirect.github.com/astral-sh/ruff/pull/12258">#12258</a>)</li> </ul> <h2>0.5.1</h2> <h3>Preview features</h3> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/astral-sh/ruff/commit/dc8db1afb08704ad6a788c497068b01edf8b460d"><code>dc8db1a</code></a> Make some amendments to the v0.5.2 changelog (<a href="https://redirect.github.com/astral-sh/ruff/issues/12319">#12319</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/18c364d5df7701cb3a09bc4a41df8954f37b2a5d"><code>18c364d</code></a> [<code>flake8-bandit</code>] Support explicit string concatenations in S310 HTTP detecti...</li> <li><a href="https://github.com/astral-sh/ruff/commit/7a7c601d5ed294a3c868b5e83f757105e0a189b8"><code>7a7c601</code></a> Bump version to v0.5.2 (<a href="https://redirect.github.com/astral-sh/ruff/issues/12316">#12316</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/3bfbbbc78c24d9fed4b25e7f6ede7f68b35fb8fd"><code>3bfbbbc</code></a> Avoid allocation when validating HTTP and HTTPS prefixes (<a href="https://redirect.github.com/astral-sh/ruff/issues/12313">#12313</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/1a3ee45b236d93632289544ed54001d048064fbf"><code>1a3ee45</code></a> [<code>flake8-bandit</code>] Avoid <code>S310</code> violations for HTTP-safe f-strings (<a href="https://redirect.github.com/astral-sh/ruff/issues/12305">#12305</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/65848869d58aeeb12e1c77c4fc73ad0b4b941368"><code>6584886</code></a> [<code>refurb</code>] Make <code>list-reverse-copy</code> an unsafe fix (<a href="https://redirect.github.com/astral-sh/ruff/issues/12303">#12303</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/456d6a2fb201c697b18aa3d4a48f82c132548c19"><code>456d6a2</code></a> Consider <code>with</code> blocks as single-item branches (<a href="https://redirect.github.com/astral-sh/ruff/issues/12311">#12311</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/940df67823dc5237f95d36a94ef3a74dc4bd36fb"><code>940df67</code></a> Omit code frames for fixes with empty ranges (<a href="https://redirect.github.com/astral-sh/ruff/issues/12304">#12304</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/e58713e2ac87a1203969dde29bf4f5509099acbd"><code>e58713e</code></a> Make cache-write failures non-fatal (<a href="https://redirect.github.com/astral-sh/ruff/issues/12302">#12302</a>)</li> <li><a href="https://github.com/astral-sh/ruff/commit/aa5c53b38b23a55780b5ccd00c8cea6e527b0ada"><code>aa5c53b</code></a> Remove 'non-obvious' allowance for E721 (<a href="https://redirect.github.com/astral-sh/ruff/issues/12300">#12300</a>)</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/v0.4.7...0.5.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.4.7&new-version=0.5.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-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:18 -05:00
yindo closed this issue 2026-02-15 16:30:18 -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#414