Skip to content

Commit

Permalink
Bump ruff from 0.0.261 to 0.0.262 (#104)
Browse files Browse the repository at this point in the history
Bumps [ruff](https://github.com/charliermarsh/ruff) from 0.0.261 to
0.0.262.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/charliermarsh/ruff/releases">ruff's
releases</a>.</em></p>
<blockquote>
<h2>v0.0.262</h2>
<!-- raw HTML omitted -->
<h2>What's Changed</h2>
<h3>Configuration</h3>
<ul>
<li>Allow users to extend the set of included files via
<code>include</code> by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/3914">charliermarsh/ruff#3914</a></li>
<li>Implement isort custom sections and ordering (<a
href="https://github.com/charliermarsh/ruff/issues/2419">#2419</a>)
by <a href="https://github.com/hackedd"><code>@​hackedd</code></a> in <a
href="https://github.com/charliermarsh/ruff/pull/3900">charliermarsh/ruff#3900</a></li>
</ul>
<h3>Rules</h3>
<ul>
<li>[<code>flake8-simplify</code>] Add autofix for
<code>contextlib.suppress</code> (<code>SIM105</code>) by <a
href="https://github.com/leiserfg"><code>@​leiserfg</code></a> in <a
href="https://github.com/charliermarsh/ruff/pull/3915">charliermarsh/ruff#3915</a></li>
<li>[<code>flake8-bandit</code>] Ignore assert errors (S101) in
<code>TYPE_CHECKING</code> blocks by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/3960">charliermarsh/ruff#3960</a></li>
<li>[<code>flake8-comprehensions</code>] Implement
<code>unnecessary-literal-within-dict-call</code> (<code>C418</code>) by
<a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/3969">charliermarsh/ruff#3969</a></li>
<li>[<code>ruff</code>] Add checks for mutable defaults
<code>dataclass</code>es by <a
href="https://github.com/mosauter"><code>@​mosauter</code></a> in <a
href="https://github.com/charliermarsh/ruff/pull/3877">charliermarsh/ruff#3877</a></li>
<li>[<code>flake8-import-conventions</code>] Add a rule for
<code>BannedImportAlias</code> by <a
href="https://github.com/stancld"><code>@​stancld</code></a> in <a
href="https://github.com/charliermarsh/ruff/pull/3926">charliermarsh/ruff#3926</a></li>
<li>[<code>flake8-pyi</code>] Implement duplicate types in unions
(<code>PYI016</code>) by <a
href="https://github.com/USER-5"><code>@​USER-5</code></a> in <a
href="https://github.com/charliermarsh/ruff/pull/3922">charliermarsh/ruff#3922</a></li>
<li>[<code>flake8-bandit</code>] Implement flake8-bandit shell injection
rules by <a
href="https://github.com/robyoung"><code>@​robyoung</code></a> in <a
href="https://github.com/charliermarsh/ruff/pull/3924">charliermarsh/ruff#3924</a></li>
<li>[<code>flake8-comprehensions</code>] Redirect <code>PIE802</code> to
<code>C419</code> by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/3971">charliermarsh/ruff#3971</a></li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>Fix unicode handling in PLE2515 by <a
href="https://github.com/konstin"><code>@​konstin</code></a> in <a
href="https://github.com/charliermarsh/ruff/pull/3898">charliermarsh/ruff#3898</a></li>
<li>Avoid adding required imports to stub files by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/3940">charliermarsh/ruff#3940</a></li>
<li>Add 'or if cond' to <code>E712</code> message by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/3962">charliermarsh/ruff#3962</a></li>
<li>Ignore argument assignments when enforcing <code>RET504</code> by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/4004">charliermarsh/ruff#4004</a></li>
<li>Fix (doc-)line-too-long start location by <a
href="https://github.com/MichaReiser"><code>@​MichaReiser</code></a> in
<a
href="https://github.com/charliermarsh/ruff/pull/4006">charliermarsh/ruff#4006</a></li>
<li>Ignore stub file assignments to value-requiring targets by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/4030">charliermarsh/ruff#4030</a></li>
<li>Allow legacy C and T selectors in JSON schema by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/3889">charliermarsh/ruff#3889</a></li>
<li>Ignore <code>PLW2901</code> when using typing cast by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://github.com/charliermarsh/ruff/pull/3891">charliermarsh/ruff#3891</a></li>
<li>Visit comprehension to detect group name usage/overrides by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://github.com/charliermarsh/ruff/pull/3887">charliermarsh/ruff#3887</a></li>
<li>Ensure that tab characters aren't in multi-line strings before
throwing a violation by <a
href="https://github.com/evanrittenhouse"><code>@​evanrittenhouse</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/3837">charliermarsh/ruff#3837</a></li>
<li>Avoid N802 violations for <code>@OverRide</code> methods by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/3912">charliermarsh/ruff#3912</a></li>
<li>Check for arguments in inner/outer call for <code>C414</code> by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://github.com/charliermarsh/ruff/pull/3916">charliermarsh/ruff#3916</a></li>
<li>Do not skip analysis if <code>*args</code> present for
<code>F523</code> by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://github.com/charliermarsh/ruff/pull/3923">charliermarsh/ruff#3923</a></li>
<li>Extend SIM105 to match also 'Ellipsis only' bodies in exception
handlers by <a
href="https://github.com/leiserfg"><code>@​leiserfg</code></a> in <a
href="https://github.com/charliermarsh/ruff/pull/3925">charliermarsh/ruff#3925</a></li>
<li>Support <code>pyright: ignore</code> comments by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/3941">charliermarsh/ruff#3941</a></li>
<li>Tidy up some <code>pygrep-hooks</code> rules by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/3942">charliermarsh/ruff#3942</a></li>
<li>Use identifier range for pytest rules by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/3948">charliermarsh/ruff#3948</a></li>
<li>Allow <code>typing_extensions.TypeVar</code> assignments in
<code>.pyi</code> files by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/3951">charliermarsh/ruff#3951</a></li>
<li>Raise percent-format upgrade rule (<code>UP031</code>) for hanging
modulos by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/3953">charliermarsh/ruff#3953</a></li>
<li>Check for parenthesis in implicit str concat in <code>PT006</code>
by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://github.com/charliermarsh/ruff/pull/3955">charliermarsh/ruff#3955</a></li>
<li>Do not consider nested comment as part of code by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://github.com/charliermarsh/ruff/pull/3984">charliermarsh/ruff#3984</a></li>
<li>Preserve type annotations when fixing <code>E731</code> by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://github.com/charliermarsh/ruff/pull/3983">charliermarsh/ruff#3983</a></li>
<li>Remove autofix behavior for uncapitalized-environment-variables
(<code>SIM112</code>) by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/3988">charliermarsh/ruff#3988</a></li>
<li>Respect typing-modules when evaluating no-return functions by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/4001">charliermarsh/ruff#4001</a></li>
<li>Avoid short-circuiting when detecting RET rules by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/4002">charliermarsh/ruff#4002</a></li>
<li>Set non-empty range for indentation diagnostics by <a
href="https://github.com/MichaReiser"><code>@​MichaReiser</code></a> in
<a
href="https://github.com/charliermarsh/ruff/pull/4005">charliermarsh/ruff#4005</a></li>
<li>Ignore relative imports in <code>banned-api</code> rules by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/4024">charliermarsh/ruff#4024</a></li>
<li>Support relative imports in <code>banned-api</code> enforcement by
<a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/4025">charliermarsh/ruff#4025</a></li>
<li>Treat non-future function annotations as required-at-runtime by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/4028">charliermarsh/ruff#4028</a></li>
<li>Ignore certain flake8-pyi errors within function bodies by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://github.com/charliermarsh/ruff/pull/4029">charliermarsh/ruff#4029</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/charliermarsh/ruff/commit/eed6866b7ed7b458660a6b56810ef752085f86f6"><code>eed6866</code></a>
Add relative-path tests for <code>banned-api</code> (<a
href="https://github.com/charliermarsh/ruff/issues/4033">#4033</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/25a6bfa9ee54c372f756f16b458f48656b7f8a5e"><code>25a6bfa</code></a>
Bump version to 0.0.262 (<a
href="https://github.com/charliermarsh/ruff/issues/4032">#4032</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/b3f8f2a5c115ce77301ee5bafe0b4995bd685d54"><code>b3f8f2a</code></a>
Remove TODO in <code>handle_node_store</code> (<a
href="https://github.com/charliermarsh/ruff/issues/4031">#4031</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/cc8b5a543b543a48f7cba11209db8c33ad51f908"><code>cc8b5a5</code></a>
Ignore stub file assignments to value-requiring targets (<a
href="https://github.com/charliermarsh/ruff/issues/4030">#4030</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/10d5415bcb3a1d7aa48be88a5c3562d1b02c9e78"><code>10d5415</code></a>
Ignore certain flake8-pyi errors within function bodies (<a
href="https://github.com/charliermarsh/ruff/issues/4029">#4029</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/827cbe7f97bcc6814446a29b224c44f8c881a3f8"><code>827cbe7</code></a>
Treat non-future function annotations as required-at-runtime (<a
href="https://github.com/charliermarsh/ruff/issues/4028">#4028</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/0d84517fbc9e10bd4918fc77472c58c71e837063"><code>0d84517</code></a>
Use module path resolver for relative autofix (<a
href="https://github.com/charliermarsh/ruff/issues/4027">#4027</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/7fa1da20fba31410ee26ae1cf7233a9278c41638"><code>7fa1da2</code></a>
Support relative imports in <code>banned-api</code> enforcement (<a
href="https://github.com/charliermarsh/ruff/issues/4025">#4025</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/f13a161eadf4e763b03d048e76c10631fc990b5e"><code>f13a161</code></a>
remove unnecessary f-string formatting (<a
href="https://github.com/charliermarsh/ruff/issues/4026">#4026</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/c4cda301aa37ec2d1062e3e9cc7c5d6f351a444e"><code>c4cda30</code></a>
Ignore relative imports in <code>banned-api</code> rules (<a
href="https://github.com/charliermarsh/ruff/issues/4024">#4024</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/charliermarsh/ruff/compare/v0.0.261...v0.0.262">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.0.261&new-version=0.0.262)](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 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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Apr 26, 2023
1 parent a577f2e commit 45a3943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
colorlog==6.7.0
homeassistant==2023.2.0
pip>=21.0,<23.2
ruff==0.0.261
ruff==0.0.262

0 comments on commit 45a3943

Please sign in to comment.