Skip to content

Commit

Permalink
Bump ruff from 0.2.1 to 0.4.4 (#181)
Browse files Browse the repository at this point in the history
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.2.1 to 0.4.4.
<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.4</h2>
<h2>Changes</h2>
<h3>Preview features</h3>
<ul>
<li>[<code>pycodestyle</code>] Ignore end-of-line comments when
determining blank line rules (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11342">#11342</a>)</li>
<li>[<code>pylint</code>] Detect <code>pathlib.Path.open</code> calls in
<code>unspecified-encoding</code> (<code>PLW1514</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11288">#11288</a>)</li>
<li>[<code>flake8-pyi</code>] Implement <code>PYI059</code>
(<code>generic-not-last-base-class</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11233">#11233</a>)</li>
<li>[<code>flake8-pyi</code>] Implement <code>PYI062</code>
(<code>duplicate-literal-member</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11269">#11269</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>flake8-boolean-trap</code>] Allow passing booleans as
positional-only arguments in code such as <code>set(True)</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11287">#11287</a>)</li>
<li>[<code>flake8-bugbear</code>] Ignore enum classes in
<code>cached-instance-method</code> (<code>B019</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11312">#11312</a>)</li>
</ul>
<h3>Server</h3>
<ul>
<li>Expand tildes when resolving Ruff server configuration file (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11283">#11283</a>)</li>
<li>Fix <code>ruff server</code> hanging after Neovim closes (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11291">#11291</a>)</li>
<li>Editor settings are used by default if no file-based configuration
exists (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11266">#11266</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>[<code>pylint</code>] Consider <code>with</code> statements for
<code>too-many-branches</code> (<code>PLR0912</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11321">#11321</a>)</li>
<li>[<code>flake8-blind-except</code>, <code>tryceratops</code>] Respect
logged and re-raised expressions in nested statements
(<code>BLE001</code>, <code>TRY201</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11301">#11301</a>)</li>
<li>Recognise assignments such as <code>__all__ =
builtins.list([&quot;foo&quot;, &quot;bar&quot;])</code> as valid
<code>__all__</code> definitions (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11335">#11335</a>)</li>
</ul>
<h2>Contributors</h2>
<ul>
<li><a
href="https://github.com/Abdur-rahmaanJ"><code>@​Abdur-rahmaanJ</code></a></li>
<li><a
href="https://github.com/AlexWaygood"><code>@​AlexWaygood</code></a></li>
<li><a href="https://github.com/KPCOFGS"><code>@​KPCOFGS</code></a></li>
<li><a
href="https://github.com/MichaReiser"><code>@​MichaReiser</code></a></li>
<li><a
href="https://github.com/augustelalande"><code>@​augustelalande</code></a></li>
<li><a
href="https://github.com/blueraft"><code>@​blueraft</code></a></li>
<li><a href="https://github.com/carljm"><code>@​carljm</code></a></li>
<li><a
href="https://github.com/carloshbcabral"><code>@​carloshbcabral</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/renovate"><code>@​renovate</code></a></li>
<li><a
href="https://github.com/snowsignal"><code>@​snowsignal</code></a></li>
<li><a
href="https://github.com/tusharsadhwani"><code>@​tusharsadhwani</code></a></li>
</ul>
<h2>v0.4.3</h2>
<h2>Changes</h2>
<h3>Enhancements</h3>
<ul>
<li>Add support for PEP 696 syntax (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11120">#11120</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.4</h2>
<h3>Preview features</h3>
<ul>
<li>[<code>pycodestyle</code>] Ignore end-of-line comments when
determining blank line rules (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11342">#11342</a>)</li>
<li>[<code>pylint</code>] Detect <code>pathlib.Path.open</code> calls in
<code>unspecified-encoding</code> (<code>PLW1514</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11288">#11288</a>)</li>
<li>[<code>flake8-pyi</code>] Implement <code>PYI059</code>
(<code>generic-not-last-base-class</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11233">#11233</a>)</li>
<li>[<code>flake8-pyi</code>] Implement <code>PYI062</code>
(<code>duplicate-literal-member</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11269">#11269</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>flake8-boolean-trap</code>] Allow passing booleans as
positional-only arguments in code such as <code>set(True)</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11287">#11287</a>)</li>
<li>[<code>flake8-bugbear</code>] Ignore enum classes in
<code>cached-instance-method</code> (<code>B019</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11312">#11312</a>)</li>
</ul>
<h3>Server</h3>
<ul>
<li>Expand tildes when resolving Ruff server configuration file (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11283">#11283</a>)</li>
<li>Fix <code>ruff server</code> hanging after Neovim closes (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11291">#11291</a>)</li>
<li>Editor settings are used by default if no file-based configuration
exists (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11266">#11266</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>[<code>pylint</code>] Consider <code>with</code> statements for
<code>too-many-branches</code> (<code>PLR0912</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11321">#11321</a>)</li>
<li>[<code>flake8-blind-except</code>, <code>tryceratops</code>] Respect
logged and re-raised expressions in nested statements
(<code>BLE001</code>, <code>TRY201</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11301">#11301</a>)</li>
<li>Recognise assignments such as <code>__all__ =
builtins.list([&quot;foo&quot;, &quot;bar&quot;])</code> as valid
<code>__all__</code> definitions (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11335">#11335</a>)</li>
</ul>
<h2>0.4.3</h2>
<h3>Enhancements</h3>
<ul>
<li>Add support for PEP 696 syntax (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11120">#11120</a>)</li>
</ul>
<h3>Preview features</h3>
<ul>
<li>[<code>refurb</code>] Use function range for
<code>reimplemented-operator</code> diagnostics (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11271">#11271</a>)</li>
<li>[<code>refurb</code>] Ignore methods in
<code>reimplemented-operator</code> (<code>FURB118</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11270">#11270</a>)</li>
<li>[<code>refurb</code>] Implement <code>fstring-number-format</code>
(<code>FURB116</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/10921">#10921</a>)</li>
<li>[<code>ruff</code>] Implement <code>redirected-noqa</code>
(<code>RUF101</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11052">#11052</a>)</li>
<li>[<code>pyflakes</code>] Distinguish between first-party and
third-party imports for fix suggestions (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11168">#11168</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>flake8-bugbear</code>] Ignore non-abstract class attributes
when enforcing <code>B024</code> (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11210">#11210</a>)</li>
<li>[<code>flake8-logging</code>] Include inline instantiations when
detecting loggers (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11154">#11154</a>)</li>
<li>[<code>pylint</code>] Also emit <code>PLR0206</code> for properties
with variadic parameters (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11200">#11200</a>)</li>
<li>[<code>ruff</code>] Detect duplicate codes as part of
<code>unused-noqa</code> (<code>RUF100</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/10850">#10850</a>)</li>
</ul>
<h3>Formatter</h3>
<ul>
<li>Avoid multiline expression if format specifier is present (<a
href="https://redirect.github.com/astral-sh/ruff/pull/11123">#11123</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/3e8878a1c852399dffedb0236097afcfb4780b81"><code>3e8878a</code></a>
Bump version to v0.4.4 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11352">#11352</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/b6b4ad99497b65ebc6b8c21944fe41115c32477a"><code>b6b4ad9</code></a>
[red-knot] <a
href="https://github.com/override"><code>@​override</code></a> lint rule
(<a
href="https://redirect.github.com/astral-sh/ruff/issues/11282">#11282</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/dd42961dd9d85a3e70baf1acf0bdd60db4393455"><code>dd42961</code></a>
[<code>pylint</code>] Detect <code>pathlib.Path.open</code> calls in
<code>unspecified-encoding</code> (`PLW15...</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/c80c1712f05b0843976f439124b4678023c14e93"><code>c80c171</code></a>
[red-knot] Vendor typeshed's stdlib (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11340">#11340</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/e2fe177c6b4e867d59409c809781a7d6922e778a"><code>e2fe177</code></a>
Revert &quot;Simplify arithmetic operation in logical lines checker (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11346">#11346</a>)&quot;
(<a
href="https://redirect.github.com/astral-sh/ruff/issues/11">#11</a>...</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/e9d1cddc97572b7bb255f1b6db993e56c0cbdba2"><code>e9d1cdd</code></a>
Simplify arithmetic operation in logical lines checker (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11346">#11346</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/dfe4291c0b7249ae892f5f1d513e6f1404436c13"><code>dfe4291</code></a>
Improve <code>ruff_python_semantic::all::extract_all_names()</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11335">#11335</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/4541337f3d3d0c09fe09910b6324ebe4f61111d9"><code>4541337</code></a>
[red-knot] Remove <code>\&lt;Db: SemanticDb&gt;</code> contraints in
favor of dynamic dispatch ...</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/8e9ddee392326832016d3a10285b55bf9e2a8319"><code>8e9ddee</code></a>
Ignore end-of-line comments when determining blank line rules (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11342">#11342</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/702d2fa1eb93009a662d33f5805fc12ddac69b4f"><code>702d2fa</code></a>
Make B024 and B027 documentation more nuanced (<a
href="https://redirect.github.com/astral-sh/ruff/issues/11341">#11341</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/v0.2.1...v0.4.4">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.2.1&new-version=0.4.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR 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>

> **Note**
> Automatic rebases have been disabled on this pull request as it has
been open for over 30 days.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcel van der Veldt <[email protected]>
  • Loading branch information
dependabot[bot] and marcelveldt authored Jun 14, 2024
1 parent 1753652 commit 52aa067
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions hass_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""Provide a package for hass-client."""

from .client import HomeAssistantClient # noqa: F401
1 change: 1 addition & 0 deletions hass_client/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Constants for the Home Assistant Websocket client."""

from typing import Final

# Can be used to specify a catch all when registering state or event listeners.
Expand Down
1 change: 1 addition & 0 deletions hass_client/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Various helpers and utilities."""

from __future__ import annotations

import asyncio
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ test = [
"pytest==8.2.0",
"pytest-aiohttp==1.0.5",
"pytest-cov==4.1.0",
"ruff==0.2.1",
"ruff==0.4.4",
"safety==3.0.1",
]

Expand Down

0 comments on commit 52aa067

Please sign in to comment.