Skip to content

Commit

Permalink
Bump ruff from 0.4.5 to 0.4.6 (#365)
Browse files Browse the repository at this point in the history
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.4.5 to 0.4.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>v0.4.6</h2>
<h2>Changes</h2>
<h3>Breaking changes</h3>
<ul>
<li>Use project-relative paths when calculating GitLab fingerprints (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11532">#11532</a>)</li>
</ul>
<h3>Preview features</h3>
<ul>
<li>[<code>flake8-async</code>] Sleep with &gt;24 hour interval should
usually sleep forever (<code>ASYNC116</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11498">#11498</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>numpy</code>] Add missing functions to NumPy 2.0 migration
rule (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11528">#11528</a>)</li>
<li>[<code>mccabe</code>] Consider irrefutable pattern similar to
<code>if .. else</code> for <code>C901</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11565">#11565</a>)</li>
<li>Consider <code>match</code>-<code>case</code> statements for
<code>C901</code>, <code>PLR0912</code>, and <code>PLR0915</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11521">#11521</a>)</li>
<li>Remove empty strings when converting to f-string
(<code>UP032</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11524">#11524</a>)</li>
<li>[<code>flake8-bandit</code>] <code>request-without-timeout</code>
should warn for <code>requests.request</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11548">#11548</a>)</li>
<li>[<code>flake8-self</code>] Ignore sunder accesses in
<code>flake8-self</code> rules (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11546">#11546</a>)</li>
<li>[<code>pyupgrade</code>] Lint for <code>TypeAliasType</code> usages
(<code>UP040</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11530">#11530</a>)</li>
</ul>
<h3>Server</h3>
<ul>
<li>Respect excludes in <code>ruff server</code> configuration discovery
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/11551">#11551</a>)</li>
<li>Use default settings if initialization options is empty or not
provided (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11566">#11566</a>)</li>
<li><code>ruff server</code> correctly treats <code>.pyi</code> files as
stub files (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11535">#11535</a>)</li>
<li><code>ruff server</code> searches for configuration in parent
directories (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11537">#11537</a>)</li>
<li><code>ruff server</code>: An empty code action filter no longer
returns notebook source actions (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11526">#11526</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>[<code>flake8-logging-format</code>] Fix autofix title in
<code>logging-warn</code> (<code>G010</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11514">#11514</a>)</li>
<li>[<code>refurb</code>] Avoid recommending
<code>operator.itemgetter</code> with dependence on lambda arguments (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11574">#11574</a>)</li>
<li>[<code>flake8-simplify</code>] Avoid recommending context manager in
<code>__enter__</code> implementations (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11575">#11575</a>)</li>
<li>Create intermediary directories for <code>--output-file</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11550">#11550</a>)</li>
<li>Propagate reads on global variables (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11584">#11584</a>)</li>
<li>Treat all <code>singledispatch</code> arguments as runtime-required
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/11523">#11523</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/Amar1729"><code>@​Amar1729</code></a></li>
<li><a
href="https://github.com/MichaReiser"><code>@​MichaReiser</code></a></li>
<li><a
href="https://github.com/akshetpandey"><code>@​akshetpandey</code></a></li>
<li><a
href="https://github.com/alex-700"><code>@​alex-700</code></a></li>
<li><a
href="https://github.com/blueraft"><code>@​blueraft</code></a></li>
<li><a href="https://github.com/chadell"><code>@​chadell</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/ekohilas"><code>@​ekohilas</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.4.6</h2>
<h3>Breaking changes</h3>
<ul>
<li>Use project-relative paths when calculating GitLab fingerprints (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11532">#11532</a>)</li>
</ul>
<h3>Preview features</h3>
<ul>
<li>[<code>flake8-async</code>] Sleep with &gt;24 hour interval should
usually sleep forever (<code>ASYNC116</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11498">#11498</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>numpy</code>] Add missing functions to NumPy 2.0 migration
rule (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11528">#11528</a>)</li>
<li>[<code>mccabe</code>] Consider irrefutable pattern similar to
<code>if .. else</code> for <code>C901</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11565">#11565</a>)</li>
<li>Consider <code>match</code>-<code>case</code> statements for
<code>C901</code>, <code>PLR0912</code>, and <code>PLR0915</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11521">#11521</a>)</li>
<li>Remove empty strings when converting to f-string
(<code>UP032</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11524">#11524</a>)</li>
<li>[<code>flake8-bandit</code>] <code>request-without-timeout</code>
should warn for <code>requests.request</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11548">#11548</a>)</li>
<li>[<code>flake8-self</code>] Ignore sunder accesses in
<code>flake8-self</code> rules (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11546">#11546</a>)</li>
<li>[<code>pyupgrade</code>] Lint for <code>TypeAliasType</code> usages
(<code>UP040</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11530">#11530</a>)</li>
</ul>
<h3>Server</h3>
<ul>
<li>Respect excludes in <code>ruff server</code> configuration discovery
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/11551">#11551</a>)</li>
<li>Use default settings if initialization options is empty or not
provided (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11566">#11566</a>)</li>
<li><code>ruff server</code> correctly treats <code>.pyi</code> files as
stub files (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11535">#11535</a>)</li>
<li><code>ruff server</code> searches for configuration in parent
directories (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11537">#11537</a>)</li>
<li><code>ruff server</code>: An empty code action filter no longer
returns notebook source actions (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11526">#11526</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>[<code>flake8-logging-format</code>] Fix autofix title in
<code>logging-warn</code> (<code>G010</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11514">#11514</a>)</li>
<li>[<code>refurb</code>] Avoid recommending
<code>operator.itemgetter</code> with dependence on lambda arguments (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11574">#11574</a>)</li>
<li>[<code>flake8-simplify</code>] Avoid recommending context manager in
<code>__enter__</code> implementations (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11575">#11575</a>)</li>
<li>Create intermediary directories for <code>--output-file</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11550">#11550</a>)</li>
<li>Propagate reads on global variables (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11584">#11584</a>)</li>
<li>Treat all <code>singledispatch</code> arguments as runtime-required
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/11523">#11523</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/astral-sh/ruff/commit/49a5a9ccc2b6b8f69bb64f87d3a915aff47eb02a"><code>49a5a9c</code></a>
Bump version to v0.4.6 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11585">#11585</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/69d92128173f0a92b0664918c8dcfeb3150c430e"><code>69d9212</code></a>
Propagate reads on global variables (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11584">#11584</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/4a305588e98ea209bbe6e99aa7928f752905aa1e"><code>4a30558</code></a>
[<code>flake8-bandit</code>] <code>request-without-timeout</code> should
warn for `requests.request...</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/16acd4913f3d5310ad9c28c1bf45d6aacee706c1"><code>16acd49</code></a>
Remove some unused <code>pub</code> functions (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11576">#11576</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/3989cb8b56e406e0f44a360a6ebc3029d4598207"><code>3989cb8</code></a>
Make <code>ruff_notebook</code> a workspace dependency in
<code>ruff_server</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11572">#11572</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/a38c05bf13a9050aeb44d16e0d9870aab7f7c742"><code>a38c05b</code></a>
Avoid recommending context manager in <code>__enter__</code>
implementations (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11575">#11575</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/ab107ef1f315efd1985902aeaca8fb0b954a6519"><code>ab107ef</code></a>
Avoid recomending operator.itemgetter with dependence on lambda arg (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11574">#11574</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/b36c713279b844c59611e426dadd45a1c3380281"><code>b36c713</code></a>
Consider irrefutable pattern similar to <code>if .. else</code> for
<code>C901</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11565">#11565</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/34a5063aa215f0caeaeb98017009dce9c83be50f"><code>34a5063</code></a>
Respect excludes in <code>ruff server</code> configuration discovery (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11551">#11551</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/adc0a5d126e46ada370a76267b8739c72aa7f958"><code>adc0a5d</code></a>
Rename document module to text_document (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11571">#11571</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/v0.4.5...v0.4.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.4.5&new-version=0.4.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>
  • Loading branch information
github-actions[bot] authored May 29, 2024
2 parents 4c80b8e + cc7ea4d commit 688fc32
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
38 changes: 19 additions & 19 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 @@ -31,7 +31,7 @@ mypy = "^1.3.0"
black = ">=23.3,<25.0"
isort = "^5.12.0"
pre-commit = "^3.3.2"
ruff = ">=0.0.269,<0.4.6"
ruff = ">=0.0.269,<0.4.7"

[tool.poetry.group.test.dependencies]
pydantic = ">=1.10.8,<3.0.0"
Expand Down

0 comments on commit 688fc32

Please sign in to comment.