Bump ruff from 0.0.254 to 0.0.256 (#535)
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Thu, 16 Mar 2023 21:14:16 +0000 (22:14 +0100)
committerGitHub <noreply@github.com>
Thu, 16 Mar 2023 21:14:16 +0000 (22:14 +0100)
Bumps [ruff](https://github.com/charliermarsh/ruff) from 0.0.254 to
0.0.256.
<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.256</h2>
<!-- raw HTML omitted -->
<h2>What's Changed</h2>
<h3>Bug Fixes</h3>
<ul>
<li>PYI011: allow <code>math</code> constants in defaults by <a
href="https://github.com/XuehaiPan"><code>@​XuehaiPan</code></a> in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3484">charliermarsh/ruff#3484</a></li>
<li>Remove erroneous C4-to-C40 redirect by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3488">charliermarsh/ruff#3488</a></li>
<li>fix lack of <code>not</code> in error message by <a
href="https://github.com/Czaki"><code>@​Czaki</code></a> in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3497">charliermarsh/ruff#3497</a></li>
<li>Ensure that redirect warnings appear exactly once per code by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3500">charliermarsh/ruff#3500</a></li>
<li>Allow f-strings and concatenations in os.getenv by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3516">charliermarsh/ruff#3516</a></li>
<li>Allow string percent formatting in os.getenv by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3518">charliermarsh/ruff#3518</a></li>
<li>Refine complexity rules for try-except-else-finally by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3519">charliermarsh/ruff#3519</a></li>
<li>Replicate inline comments when splitting single-line imports by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3521">charliermarsh/ruff#3521</a></li>
<li>Avoid PEP 604 isinstance errors for starred tuples by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3527">charliermarsh/ruff#3527</a></li>
<li>Avoid tracking as-imports separately with force-single-line by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3530">charliermarsh/ruff#3530</a></li>
<li>Fix PYI011 and add auto-fix by <a
href="https://github.com/JonathanPlasse"><code>@​JonathanPlasse</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3492">charliermarsh/ruff#3492</a></li>
<li>Avoid PEP 604 panic with empty tuple by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3526">charliermarsh/ruff#3526</a></li>
<li>Add last remaining deprecated typing imports by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3529">charliermarsh/ruff#3529</a></li>
<li>Avoid unused argument violations in .pyi files by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3533">charliermarsh/ruff#3533</a></li>
</ul>
<h3>Other Changes</h3>
<ul>
<li>Include individual path checks in --verbose logging by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3489">charliermarsh/ruff#3489</a></li>
<li>Allow <code># ruff:</code> prefix for isort action comments by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3493">charliermarsh/ruff#3493</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/charliermarsh/ruff/compare/v0.0.255...v0.0.256">https://github.com/charliermarsh/ruff/compare/v0.0.255...v0.0.256</a></p>
<h2>v0.0.255</h2>
<!-- raw HTML omitted -->
<h2>What's Changed</h2>
<h3>Rules</h3>
<ul>
<li>[<code>flake8-pie</code>] Fix PIE802 broken auto-fix with trailing
comma by <a
href="https://github.com/JonathanPlasse"><code>@​JonathanPlasse</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3402">charliermarsh/ruff#3402</a></li>
<li>[<code>flake8-pie</code>] Implement autofix for PIE810 by <a
href="https://github.com/kyoto7250"><code>@​kyoto7250</code></a> in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3411">charliermarsh/ruff#3411</a></li>
<li>[<code>flake8-bugbear</code>] Add <code>flake8-bugbear</code>'s B030
rule by <a
href="https://github.com/aacunningham"><code>@​aacunningham</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3400">charliermarsh/ruff#3400</a></li>
<li>[<code>pycodestyle</code>] Add E231 by <a
href="https://github.com/carlosmiei"><code>@​carlosmiei</code></a> in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3344">charliermarsh/ruff#3344</a></li>
<li>[<code>pyupgrade</code>] Flag deprecated (but renamed) imports in
UP035 by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3448">charliermarsh/ruff#3448</a></li>
<li>[<code>pyupgrade</code>] Remap ChainMap, Counter, and OrderedDict
imports to collections by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3392">charliermarsh/ruff#3392</a></li>
<li>[<code>pylint</code>] C1901: compare-to-empty-string by <a
href="https://github.com/AreamanM"><code>@​AreamanM</code></a> in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3405">charliermarsh/ruff#3405</a></li>
<li>[<code>pylint</code>] Implement W1508 invalid-envvar-default by <a
href="https://github.com/latonis"><code>@​latonis</code></a> in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3449">charliermarsh/ruff#3449</a></li>
<li>[<code>pylint</code>] Implement E1507 invalid-envvar-value by <a
href="https://github.com/latonis"><code>@​latonis</code></a> in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3467">charliermarsh/ruff#3467</a></li>
</ul>
<h3>Settings</h3>
<ul>
<li>Infer <code>target-version</code> from project metadata by <a
href="https://github.com/JonathanPlasse"><code>@​JonathanPlasse</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3470">charliermarsh/ruff#3470</a></li>
<li>Implement configuration options
<code>runtime-evaluated-decorators</code> and
<code>runtime-evaluated-base-classes</code> for
<code>flake8-type-checking</code> by <a
href="https://github.com/sasanjac"><code>@​sasanjac</code></a> in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3292">charliermarsh/ruff#3292</a></li>
<li>Add Azure DevOps as a <code>--format</code> option. by <a
href="https://github.com/StefanBRas"><code>@​StefanBRas</code></a> in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3335">charliermarsh/ruff#3335</a></li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>Re-enable the T and C linter prefix selectors by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3452">charliermarsh/ruff#3452</a></li>
<li>Treat unary operations on constants as constant-like by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3348">charliermarsh/ruff#3348</a></li>
<li>Skip byte-order-mark at start of file by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/charliermarsh/ruff/pull/3343">charliermarsh/ruff#3343</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/e636c5fcf07313ad83c1c75d5b1459b4999efd20"><code>e636c5f</code></a>
Avoid unused argument violations in .pyi files (<a
href="https://redirect.github.com/charliermarsh/ruff/issues/3533">#3533</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/12dfd57211ec11a593aa93057dc1c49221bf2b09"><code>12dfd57</code></a>
Bump version to v0.0.256 (<a
href="https://redirect.github.com/charliermarsh/ruff/issues/3531">#3531</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/d188d242a00a7583fc98c6ca5fe2746c7a064cea"><code>d188d24</code></a>
Avoid tracking as-imports separately with force-single-line (<a
href="https://redirect.github.com/charliermarsh/ruff/issues/3530">#3530</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/57796c5e59e3e0950d4409d3e54e7ba5a04bdda1"><code>57796c5</code></a>
Add last remaining deprecated typing imports (<a
href="https://redirect.github.com/charliermarsh/ruff/issues/3529">#3529</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/254586979727aeaaad694d4fe1a166e37b9674d0"><code>2545869</code></a>
Avoid PEP 604 isinstance errors for starred tuples (<a
href="https://redirect.github.com/charliermarsh/ruff/issues/3527">#3527</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/58353a4bf4789dd3bef200e94c38f948ecae8249"><code>58353a4</code></a>
Avoid PEP 604 panic with empty tuple (<a
href="https://redirect.github.com/charliermarsh/ruff/issues/3526">#3526</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/a36139ae218beb25a6a035fb89777b0e99d067b8"><code>a36139a</code></a>
Replicate inline comments when splitting single-line imports (<a
href="https://redirect.github.com/charliermarsh/ruff/issues/3521">#3521</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/7e904111b1901db43150fad09ab43c92f31a4d26"><code>7e90411</code></a>
Fix PYI011 and add auto-fix (<a
href="https://redirect.github.com/charliermarsh/ruff/issues/3492">#3492</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/344daebb1b136a9cf059518c09ef88e7940e2d28"><code>344daeb</code></a>
Refine complexity rules for try-except-else-finally (<a
href="https://redirect.github.com/charliermarsh/ruff/issues/3519">#3519</a>)</li>
<li><a
href="https://github.com/charliermarsh/ruff/commit/432059de35e3fc7f20140686b7df6ee770acc0f2"><code>432059d</code></a>
Allow <code># ruff:</code> prefix for isort action comments (<a
href="https://redirect.github.com/charliermarsh/ruff/issues/3493">#3493</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/charliermarsh/ruff/compare/v0.0.254...v0.0.256">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.254&new-version=0.0.256)](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>
pyproject.toml

index c189297bdcee86a2683aab99ec2e45c82e142f79..dca0db2f6e24d7e062a54b967d8c5801ef813a7d 100644 (file)
@@ -46,7 +46,7 @@ test = [
   "black==23.1.0",
   "codespell==2.2.4",
   "mypy==1.0.1",
-  "ruff==0.0.254",
+  "ruff==0.0.256",
   "pytest==7.2.1",
   "pytest-asyncio==0.20.3",
   "pytest-aiohttp==1.0.4",