Skip to content

Commit

Permalink
Bump ruff from 0.0.278 to 0.0.280 (#215)
Browse files Browse the repository at this point in the history
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.278 to 0.0.280.
<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.0.280</h2>
<!-- raw HTML omitted -->
<h2>What's Changed</h2>
<h3>Bug Fixes</h3>
<ul>
<li>Avoid collapsing <code>elif</code> and <code>else</code> branches
during import sorting by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5964">astral-sh/ruff#5964</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/astral-sh/ruff/compare/v0.0.279...v0.0.280">https://github.com/astral-sh/ruff/compare/v0.0.279...v0.0.280</a></p>
<h2>v0.0.279</h2>
<!-- raw HTML omitted -->
<h2>What's Changed</h2>
<h3>Rules</h3>
<ul>
<li>[<code>flake8-pyi</code>] Implement flake8-pyi's PYI026 by <a
href="https://github.com/LaBatata101"><code>@​LaBatata101</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/5844">astral-sh/ruff#5844</a></li>
<li>[<code>flake8-pyi</code>] Implement flake8-pyi's <code>PYI017</code>
by <a href="https://github.com/qdegraaf"><code>@​qdegraaf</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/5895">astral-sh/ruff#5895</a></li>
<li>[<code>flake8-pyi</code>] Implement flake8-pyi's <code>PYI036</code>
by <a href="https://github.com/density"><code>@​density</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5668">astral-sh/ruff#5668</a></li>
<li>[<code>flake8-pyi</code>] Implement flake8-pyi's <code>PYI041</code>
by <a href="https://github.com/density"><code>@​density</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5722">astral-sh/ruff#5722</a></li>
<li>[<code>flake8-use-pathlib</code>] Implement
<code>os-path-getsize</code> and <code>os-path-get(a|m|c)-time</code>
(<code>PTH202-205</code>) by <a
href="https://github.com/sbrugman"><code>@​sbrugman</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5835">astral-sh/ruff#5835</a></li>
<li>[<code>flake8-use-pathlib</code>] Implement
<code>path-constructor-default-argument</code> (<code>PTH201</code>) by
<a href="https://github.com/sbrugman"><code>@​sbrugman</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5833">astral-sh/ruff#5833</a></li>
<li>[<code>pandas-vet</code>] Implement constant series rule
(<code>PD101</code>) by <a
href="https://github.com/sbrugman"><code>@​sbrugman</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5802">astral-sh/ruff#5802</a></li>
<li>[<code>pylint</code>] Implement Pylint's
<code>consider-using-in</code> (<code>PLR1714</code>) by <a
href="https://github.com/tjkuson"><code>@​tjkuson</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5193">astral-sh/ruff#5193</a></li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>flake8-annotations</code>] Check for <code>Any</code> in
other types for <code>ANN401</code> by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/5601">astral-sh/ruff#5601</a></li>
<li>[<code>flake8-bugbear</code>] Add autofix for B004 by <a
href="https://github.com/density"><code>@​density</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5788">astral-sh/ruff#5788</a></li>
<li>[<code>flake8-bugbear</code>] Remove <code>B904</code>'s lowercase
exemption by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5751">astral-sh/ruff#5751</a></li>
<li>[<code>flake8-use-pathlib</code>] extend PTH118 with
<code>os.sep</code> by <a
href="https://github.com/sbrugman"><code>@​sbrugman</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5935">astral-sh/ruff#5935</a></li>
<li>[<code>pyupgrade</code>] Expand scope of
<code>quoted-annotation</code> rule (<code>UP037</code>) by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5766">astral-sh/ruff#5766</a></li>
<li>[<code>pyupgrade</code>] Extend PEP 604 rewrites to support some
quoted annotations by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5725">astral-sh/ruff#5725</a></li>
<li>[<code>ruff</code>] Expand <code>RUF015</code> to include all
expression types by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5767">astral-sh/ruff#5767</a></li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>Consider single element subscript expr for implicit optional by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/5717">astral-sh/ruff#5717</a></li>
<li>Ignore <code>Enum</code>-and-<code>str</code> subclasses for slots
enforcement by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5749">astral-sh/ruff#5749</a></li>
<li>Avoid removing raw strings in comparison fixes by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5755">astral-sh/ruff#5755</a></li>
<li>Fix nested calls to <code>sorted</code> with differing arguments by
<a href="https://github.com/density"><code>@​density</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5761">astral-sh/ruff#5761</a></li>
<li>Use unused variable detection to power
<code>incorrect-dict-iterator</code> by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5763">astral-sh/ruff#5763</a></li>
<li>Include alias when formatting import-from structs by <a
href="https://github.com/guillaumeLepape"><code>@​guillaumeLepape</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5786">astral-sh/ruff#5786</a></li>
<li>Make <code>lint_only</code> aware of the source kind by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/5876">astral-sh/ruff#5876</a></li>
<li>Restore <code>redefined-while-unused</code> violations in classes by
<a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5926">astral-sh/ruff#5926</a></li>
<li>Flatten nested tuples when fixing UP007 violations by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5724">astral-sh/ruff#5724</a></li>
<li>Ignore Jupyter Notebooks for <code>--add-noqa</code> by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/5727">astral-sh/ruff#5727</a></li>
<li>Avoid checking <code>EXE001</code> and <code>EXE002</code> on WSL by
<a href="https://github.com/tjkuson"><code>@​tjkuson</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5735">astral-sh/ruff#5735</a></li>
<li>Properly group assignment targets by <a
href="https://github.com/MichaReiser"><code>@​MichaReiser</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/5728">astral-sh/ruff#5728</a></li>
<li>Avoid stack overflow for non-BitOr binary types by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5743">astral-sh/ruff#5743</a></li>
<li>Move function visit out of <code>Expr::Call</code> branches by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5772">astral-sh/ruff#5772</a></li>
<li>[B006] Add bytes to immutable types by <a
href="https://github.com/harupy"><code>@​harupy</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5776">astral-sh/ruff#5776</a></li>
<li>Format <code>SetComp</code> by <a
href="https://github.com/lkh42t"><code>@​lkh42t</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5774">astral-sh/ruff#5774</a></li>
<li>Gate <code>runtime-import-in-type-checking-block</code>
(<code>TCH004</code>) behind enabled flag by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/5789">astral-sh/ruff#5789</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/86b6a3e1ad1b6af1381bb6e7fb1521cd5dd9c1be"><code>86b6a3e</code></a>
Remove nested f-string flag (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5966">#5966</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/f5a2fb5b5d8b629cf93a5f3a10e70c294dc36ef4"><code>f5a2fb5</code></a>
Bump version to 0.0.280 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5965">#5965</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/94a004ee9ca56cac6f240f63f776ba361d1fa530"><code>94a004e</code></a>
Avoid collapsing <code>elif</code> and <code>else</code> branches during
import sorting (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5964">#5964</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/aaf7f362a14ab38bf53fc5273642f7d91558b3b5"><code>aaf7f36</code></a>
Create snake_case file if linter is Pylint (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5948">#5948</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/2dcd9e2e9c7e0eadd8c063d00449b6961361eead"><code>2dcd9e2</code></a>
Remove unnecessary <code>check_deferred_assignments</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5963">#5963</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/40e9884353337d312a79f0486a68997779d2f275"><code>40e9884</code></a>
Move nonlocal-without-binding out of binding step (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5962">#5962</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/9bbb0a5151f08322a744e64034960f7fe7b63bb2"><code>9bbb0a5</code></a>
Fix typo in documentation (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5961">#5961</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/f1f89f2a7e8eeb16334d8f0a30dfb9ae45425bee"><code>f1f89f2</code></a>
Bump version to 0.0.279 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5949">#5949</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/196cc9b655a925fd6bb306e3bde5d5dc38b5bedf"><code>196cc9b</code></a>
Fix RustPython rev to main branch (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5950">#5950</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/972f9a9c1552e642b4d57dc5cf9428e9893bbd09"><code>972f9a9</code></a>
Fix formatting lambda with empty arguments (<a
href="https://redirect.github.com/astral-sh/ruff/issues/5944">#5944</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/v0.0.278...v0.0.280">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.278&new-version=0.0.280)](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>
  • Loading branch information
github-actions[bot] authored Jul 24, 2023
2 parents d2ae6c1 + 2deb1ae commit 19a8f10
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.0"
isort = "^5.12.0"
pre-commit = "^3.3.2"
ruff = ">=0.0.269,<0.0.279"
ruff = ">=0.0.269,<0.0.281"

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

0 comments on commit 19a8f10

Please sign in to comment.