Skip to content

Commit

Permalink
Bump ruff from 0.0.291 to 0.0.292 (#254)
Browse files Browse the repository at this point in the history
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.291 to 0.0.292.
<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.292</h2>
<!-- raw HTML omitted -->
<h2>What's Changed</h2>
<h3>Highlights</h3>
<p><strong>This release includes full support for Python 3.12 (<a
href="https://www.python.org/downloads/release/python-3120/">out
now!</a>), including the new type parameter (<a
href="https://peps.python.org/pep-0695/">PEP 695</a>) and f-string
syntaxes (<a href="https://peps.python.org/pep-0701/">PEP
701</a>).</strong></p>
<p>PEP 701 lifts many of the restrictions on f-strings that existed in
the past, allowing for arbitrarily nested f-strings, consistent quote
style within f-strings, and more, all of which are now supported by Ruff
(thanks to <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/7376">astral-sh/ruff#7376</a>).</p>
<h3>Breaking Changes</h3>
<ul>
<li>In the formatter, <code>format.quote-style</code> no longer affects
triple-quoted strings, to align with common conventions as well as the
guidance from PEP 8 and PEP 257 (see: <a
href="https://redirect.github.com/astral-sh/ruff/pull/7680">astral-sh/ruff#7680</a>).</li>
<li><code>line-too-long</code> (<code>E501</code>) now ignores trailing
pragma comments (like <code># type: ignore</code> and <code>#
noqa</code>) when computing line length (see: <a
href="https://redirect.github.com/astral-sh/ruff/pull/7692">astral-sh/ruff#7692</a>).
This is similar to flake8-bugbear's methodology for detecting overlong
lines, and ensures that adding pragmas like <code># noqa</code> does not
introduce further lint errors.</li>
<li><code>unnecessary-pass</code> (<code>PIE790</code>) now flags all
unnecessary <code>pass</code> statements; previously, the rule only
flagged <code>pass</code> statements that followed a docstring in a
two-statement body (see: <a
href="https://redirect.github.com/astral-sh/ruff/pull/7697">astral-sh/ruff#7697</a>).</li>
</ul>
<h3>Rules</h3>
<ul>
<li>[<code>refurb</code>] Implement <code>print-empty-string</code>
(<code>FURB105</code>) by <a
href="https://github.com/tjkuson"><code>@​tjkuson</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7617">astral-sh/ruff#7617</a></li>
<li>[<code>flake8-bandit</code>] Implement
<code>weak-cryptographic-key</code> (<code>S505</code>) by <a
href="https://github.com/mkniewallner"><code>@​mkniewallner</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7703">astral-sh/ruff#7703</a></li>
<li>[<code>refurb</code>] Implement <code>implicit-cwd</code> (FURB177)
by <a
href="https://github.com/danparizher"><code>@​danparizher</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/7704">astral-sh/ruff#7704</a></li>
</ul>
<h3>Settings</h3>
<ul>
<li>Add <code>lint</code> section to Ruff configuration by <a
href="https://github.com/MichaReiser"><code>@​MichaReiser</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/7549">astral-sh/ruff#7549</a></li>
<li>Add <code>explicit-preview-rules</code> to toggle explicit selection
of preview rules by <a
href="https://github.com/zanieb"><code>@​zanieb</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7390">astral-sh/ruff#7390</a></li>
<li>Decrease PEP 593 error to a debug warning by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7745">astral-sh/ruff#7745</a></li>
<li>Write full Jupyter notebook to <code>stdout</code> by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7748">astral-sh/ruff#7748</a></li>
<li>Extend <code>unnecessary-pass</code> (<code>PIE790</code>) to
trigger on all unnecessary <code>pass</code> statements by <a
href="https://github.com/tjkuson"><code>@​tjkuson</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7697">astral-sh/ruff#7697</a></li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li>Ignore blank lines between comments when counting
newlines-after-imports by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7607">astral-sh/ruff#7607</a></li>
<li>Avoid reordering mixed-indent-level comments after branches by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7609">astral-sh/ruff#7609</a></li>
<li>Avoid flagging B009 and B010 on starred expressions by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7621">astral-sh/ruff#7621</a></li>
<li>Use deletion for D215 full-line removals by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7625">astral-sh/ruff#7625</a></li>
<li>Avoid searching for bracketed comments in unparenthesized generators
by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7627">astral-sh/ruff#7627</a></li>
<li>Update return type for <code>PT022</code> autofix by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/7613">astral-sh/ruff#7613</a></li>
<li>Flag FURB105 with starred kwargs by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7630">astral-sh/ruff#7630</a></li>
<li>Don't suggest replacing <code>builtin.open()</code> with
<code>Path.open()</code> if the latter doesn't support all options by <a
href="https://github.com/konstin"><code>@​konstin</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7637">astral-sh/ruff#7637</a></li>
<li>Use 1-based cell indices consistently for Notebooks by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/7662">astral-sh/ruff#7662</a></li>
<li>Add <code>Expr::Name</code> checks to rules which use
<code>is_logger_candidate</code> by <a
href="https://github.com/qdegraaf"><code>@​qdegraaf</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7521">astral-sh/ruff#7521</a></li>
<li>Ensure that B006 autofixes are inserted after imports by <a
href="https://github.com/Hoxbro"><code>@​Hoxbro</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7629">astral-sh/ruff#7629</a></li>
<li>Allow named expressions in <code>__all__</code> assignments by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7673">astral-sh/ruff#7673</a></li>
<li>Include radix base prefix in large number representation by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7700">astral-sh/ruff#7700</a></li>
<li>Parenthesize multi-line attributes in B009 by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7701">astral-sh/ruff#7701</a></li>
<li>Insert necessary padding in B014 fixes by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7699">astral-sh/ruff#7699</a></li>
<li>fix(rules): improve S507 detection by <a
href="https://github.com/mkniewallner"><code>@​mkniewallner</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7661">astral-sh/ruff#7661</a></li>
<li>Ignore TODO tags in <code>commented-out-code</code> by <a
href="https://github.com/tjkuson"><code>@​tjkuson</code></a> in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7523">astral-sh/ruff#7523</a></li>
<li>Track fix isolation in <code>unnecessary-pass</code> by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7715">astral-sh/ruff#7715</a></li>
<li>Use fixed source code for parser context by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7717">astral-sh/ruff#7717</a></li>
<li>Preserve parentheses in <code>quadratic-list-summation</code> by <a
href="https://github.com/charliermarsh"><code>@​charliermarsh</code></a>
in <a
href="https://redirect.github.com/astral-sh/ruff/pull/7719">astral-sh/ruff#7719</a></li>
<li>Compute <code>NotebookIndex</code> for <code>Diagnostics</code> on
stdin by <a
href="https://github.com/dhruvmanila"><code>@​dhruvmanila</code></a> in
<a
href="https://redirect.github.com/astral-sh/ruff/pull/7663">astral-sh/ruff#7663</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/c6d0bdd5723e4c15b2b425e84fdb1b4ca5379700"><code>c6d0bdd</code></a>
Bump Ruff version to v0.0.292 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7761">#7761</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/75f759ed55b301e1f4576e56b084a6b2ef909dd5"><code>75f759e</code></a>
Upgrade LibCST to support Python 3.12 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7764">#7764</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/6b99f5e3e6a1911cd62ad032980ddd96dd87db8e"><code>6b99f5e</code></a>
Re-add formatter to GitHub release notes (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7763">#7763</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/97c092a102418e263a835373fbf7d5d4d4bdd57a"><code>97c092a</code></a>
Add formatter TOML configuration to the README (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7762">#7762</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/bdf285225db4c658c380698948e1aaa63183e012"><code>bdf2852</code></a>
Enable formatting for Jupyter notebooks (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7749">#7749</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/0961f008b836b29bbddda8067a0530e45679abf5"><code>0961f00</code></a>
Rename <code>FixKind</code> to <code>FixAvailability</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7658">#7658</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/ebdfcee87f36e717d550ebc2e74e80fb0cc67113"><code>ebdfcee</code></a>
Write full Jupyter notebook to <code>stdout</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7748">#7748</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/c71ff7eae1e78c71a14d8de8530470e1a97d6bc8"><code>c71ff7e</code></a>
Avoid printing continuations within import identifiers (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7744">#7744</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/0df27375baf868905afe6caf3ca0dab846fcec01"><code>0df2737</code></a>
Bump memchr from 2.6.3 to 2.6.4 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7758">#7758</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/c82d0503a8701c9b6e86af56ce49efb2033ce057"><code>c82d050</code></a>
Bump thiserror from 1.0.48 to 1.0.49 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/7757">#7757</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/v0.0.291...v0.0.292">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.291&new-version=0.0.292)](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 Oct 3, 2023
2 parents 0877cea + 0444e22 commit 7c63efa
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.292"
ruff = ">=0.0.269,<0.0.293"

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

0 comments on commit 7c63efa

Please sign in to comment.