Skip to content

Commit

Permalink
Bump ruff from 0.5.2 to 0.5.3 (#398)
Browse files Browse the repository at this point in the history
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.5.2 to 0.5.3.
<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>0.5.3</h2>
<h2>Release Notes</h2>
<p><strong>Ruff 0.5.3 marks the stable release of the Ruff language
server and introduces revamped <a
href="https://docs.astral.sh/ruff/editors">documentation</a>, including
<a href="https://docs.astral.sh/ruff/editors/setup">setup guides for
your editor of choice</a> and <a
href="https://docs.astral.sh/ruff/editors/settings">the language server
itself</a></strong>.</p>
<h3>Preview features</h3>
<ul>
<li>Formatter: Insert empty line between suite and alternative branch
after function/class definition (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12294">#12294</a>)</li>
<li>[<code>pyupgrade</code>] Implement
<code>unnecessary-default-type-args</code> (<code>UP043</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12371">#12371</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>flake8-bugbear</code>] Detect enumerate iterations in
<code>loop-iterator-mutation</code> (<code>B909</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12366">#12366</a>)</li>
<li>[<code>flake8-bugbear</code>] Remove <code>discard</code>,
<code>remove</code>, and <code>pop</code> allowance for
<code>loop-iterator-mutation</code> (<code>B909</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12365">#12365</a>)</li>
<li>[<code>pylint</code>] Allow
<code>repeated-equality-comparison</code> for mixed operations
(<code>PLR1714</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12369">#12369</a>)</li>
<li>[<code>pylint</code>] Ignore <code>self</code> and <code>cls</code>
when counting arguments (<code>PLR0913</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12367">#12367</a>)</li>
<li>[<code>pylint</code>] Use UTF-8 as default encoding in
<code>unspecified-encoding</code> fix (<code>PLW1514</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12370">#12370</a>)</li>
</ul>
<h3>Server</h3>
<ul>
<li>Build settings index in parallel for the native server (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12299">#12299</a>)</li>
<li>Use fallback settings when indexing the project (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12362">#12362</a>)</li>
<li>Consider <code>--preview</code> flag for <code>server</code>
subcommand for the linter and formatter (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12208">#12208</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>[<code>flake8-comprehensions</code>] Allow additional arguments for
<code>sum</code> and <code>max</code> comprehensions (<code>C419</code>)
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/12364">#12364</a>)</li>
<li>[<code>pylint</code>] Avoid dropping extra boolean operations in
<code>repeated-equality-comparison</code> (<code>PLR1714</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12368">#12368</a>)</li>
<li>[<code>pylint</code>] Consider expression before statement when
determining binding kind (<code>PLR1704</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12346">#12346</a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li>Add docs for Ruff language server (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12344">#12344</a>)</li>
<li>Migrate to standalone docs repo (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12341">#12341</a>)</li>
<li>Update versioning policy for editor integration (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12375">#12375</a>)</li>
</ul>
<h3>Other changes</h3>
<ul>
<li>Publish Wasm API to npm (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12317">#12317</a>)</li>
</ul>
<h2>Contributors</h2>
<ul>
<li><a
href="https://github.com/AlexWaygood"><code>@​AlexWaygood</code></a></li>
<li><a
href="https://github.com/MichaReiser"><code>@​MichaReiser</code></a></li>
<li><a
href="https://github.com/cake-monotone"><code>@​cake-monotone</code></a></li>
<li><a href="https://github.com/carljm"><code>@​carljm</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/github-actions"><code>@​github-actions</code></a></li>
<li><a href="https://github.com/konstin"><code>@​konstin</code></a></li>
<li><a
href="https://github.com/mattrunyon"><code>@​mattrunyon</code></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.5.3</h2>
<p><strong>Ruff 0.5.3 marks the stable release of the Ruff language
server and introduces revamped
<a href="https://docs.astral.sh/ruff/editors">documentation</a>,
including <a href="https://docs.astral.sh/ruff/editors/setup">setup
guides for your editor of
choice</a> and <a
href="https://docs.astral.sh/ruff/editors/settings">the language server
itself</a></strong>.</p>
<h3>Preview features</h3>
<ul>
<li>Formatter: Insert empty line between suite and alternative branch
after function/class definition (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12294">#12294</a>)</li>
<li>[<code>pyupgrade</code>] Implement
<code>unnecessary-default-type-args</code> (<code>UP043</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12371">#12371</a>)</li>
</ul>
<h3>Rule changes</h3>
<ul>
<li>[<code>flake8-bugbear</code>] Detect enumerate iterations in
<code>loop-iterator-mutation</code> (<code>B909</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12366">#12366</a>)</li>
<li>[<code>flake8-bugbear</code>] Remove <code>discard</code>,
<code>remove</code>, and <code>pop</code> allowance for
<code>loop-iterator-mutation</code> (<code>B909</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12365">#12365</a>)</li>
<li>[<code>pylint</code>] Allow
<code>repeated-equality-comparison</code> for mixed operations
(<code>PLR1714</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12369">#12369</a>)</li>
<li>[<code>pylint</code>] Ignore <code>self</code> and <code>cls</code>
when counting arguments (<code>PLR0913</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12367">#12367</a>)</li>
<li>[<code>pylint</code>] Use UTF-8 as default encoding in
<code>unspecified-encoding</code> fix (<code>PLW1514</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12370">#12370</a>)</li>
</ul>
<h3>Server</h3>
<ul>
<li>Build settings index in parallel for the native server (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12299">#12299</a>)</li>
<li>Use fallback settings when indexing the project (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12362">#12362</a>)</li>
<li>Consider <code>--preview</code> flag for <code>server</code>
subcommand for the linter and formatter (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12208">#12208</a>)</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>[<code>flake8-comprehensions</code>] Allow additional arguments for
<code>sum</code> and <code>max</code> comprehensions (<code>C419</code>)
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/12364">#12364</a>)</li>
<li>[<code>pylint</code>] Avoid dropping extra boolean operations in
<code>repeated-equality-comparison</code> (<code>PLR1714</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12368">#12368</a>)</li>
<li>[<code>pylint</code>] Consider expression before statement when
determining binding kind (<code>PLR1704</code>) (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12346">#12346</a>)</li>
</ul>
<h3>Documentation</h3>
<ul>
<li>Add docs for Ruff language server (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12344">#12344</a>)</li>
<li>Migrate to standalone docs repo (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12341">#12341</a>)</li>
<li>Update versioning policy for editor integration (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12375">#12375</a>)</li>
</ul>
<h3>Other changes</h3>
<ul>
<li>Publish Wasm API to npm (<a
href="https://redirect.github.com/astral-sh/ruff/pull/12317">#12317</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/astral-sh/ruff/commit/f0d589d7a3fe34fa25ea066967851f5e71da690e"><code>f0d589d</code></a>
Provide custom job permissions to <code>cargo-dist</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12386">#12386</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/512c8b2cc59c835dcc4346ae9b7a3c2cc0b8c132"><code>512c8b2</code></a>
Provide contents read permission to wasm publish job (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12384">#12384</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/811f78d94dbf936b1b3fe74e788bf46b32677d8c"><code>811f78d</code></a>
[red-knot] small efficiency improvements and bugfixes to use-def map
building...</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/8f1be31289e481be4f63c61962d093eb447fb2ee"><code>8f1be31</code></a>
Update 0.5.3 changelog caption (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12383">#12383</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/8cfbac71a4d08eacf7dba1d39d1be6e1b7c03807"><code>8cfbac7</code></a>
Bump version to 0.5.3 (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12381">#12381</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/946085793278f2616ca1bc7200c51a86a2e5d732"><code>9460857</code></a>
Migrate to standalone docs repo (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12341">#12341</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/a028ca22f0f5601f57f617df25fec7b9a652ed4e"><code>a028ca2</code></a>
Add VS Code specific extension settings (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12380">#12380</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/7953f6aa79f7546f3c2ff4f9e80d7694c13d62c6"><code>7953f6a</code></a>
Update versioning policy for editor integration (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12375">#12375</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/764d9ab4ee19a723f3ad96523cb8bb067430e9d8"><code>764d9ab</code></a>
Allow <code>repeated-equality-comparison</code> for mixed operations (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12369">#12369</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/9b9d70150001da91d6eec55590c117c38ad679c9"><code>9b9d701</code></a>
Allow additional arguments for sum and max comprehensions (<a
href="https://redirect.github.com/astral-sh/ruff/issues/12364">#12364</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/0.5.2...0.5.3">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.5.2&new-version=0.5.3)](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 Jul 19, 2024
2 parents 0e138e4 + 5ccab79 commit 0371f99
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
40 changes: 20 additions & 20 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 @@ -15,7 +15,7 @@ boto3 = "^1.26.163"
pytest = ">=7.4,<9.0"
moto = ">=4.1.12,<6.0.0"
black = ">=23.3,<25.0"
ruff = ">=0.5.1,<0.5.3"
ruff = ">=0.5.1,<0.5.4"
yapf = "^0.40.1"

[build-system]
Expand Down

0 comments on commit 0371f99

Please sign in to comment.