Skip to content

Commit

Permalink
Bump ruff from 0.7.4 to 0.8.0 (#520)
Browse files Browse the repository at this point in the history
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.7.4 to 0.8.0.
<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.8.0</h2>
<h2>Release Notes</h2>
<p>Check out the <a href="https://astral.sh/blog/ruff-v0.8.0">blog
post</a> for a migration guide and overview of the changes!</p>
<h3>Breaking changes</h3>
<p>See also, the &quot;Remapped rules&quot; section which may result in
disabled rules.</p>
<ul>
<li>
<p><strong>Default to Python 3.9</strong></p>
<p>Ruff now defaults to Python 3.9 instead of 3.8 if no explicit Python
version is configured using <a
href="https://docs.astral.sh/ruff/settings/#target-version"><code>ruff.target-version</code></a>
or <a
href="https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#python-requires"><code>project.requires-python</code></a>
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/13896">#13896</a>)</p>
</li>
<li>
<p><strong>Changed location of <code>pydoclint</code>
diagnostics</strong></p>
<p><a
href="https://docs.astral.sh/ruff/rules/#pydoclint-doc"><code>pydoclint</code></a>
diagnostics now point to the first-line of the problematic docstring.
Previously, this was not the case.</p>
<p>If you've opted into these preview rules but have them suppressed
using
<a
href="https://docs.astral.sh/ruff/linter/#error-suppression"><code>noqa</code></a>
comments in
some places, this change may mean that you need to move the
<code>noqa</code> suppression
comments. Most users should be unaffected by this change.</p>
</li>
<li>
<p><strong>Use XDG (i.e. <code>~/.local/bin</code>) instead of the Cargo
home directory in the standalone installer</strong></p>
<p>Previously, Ruff's installer used <code>$CARGO_HOME</code> or
<code>~/.cargo/bin</code> for its target install directory. Now, Ruff
will be installed into <code>$XDG_BIN_HOME</code>,
<code>$XDG_DATA_HOME/../bin</code>, or <code>~/.local/bin</code> (in
that order).</p>
<p>This change is only relevant to users of the standalone Ruff
installer (using the shell or PowerShell script). If you installed Ruff
using uv or pip, you should be unaffected.</p>
</li>
<li>
<p><strong>Changes to the line width calculation</strong></p>
<p>Ruff now uses a new version of the <a
href="https://github.com/unicode-rs/unicode-width">unicode-width</a>
Rust crate to calculate the line width. In very rare cases, this may
lead to lines containing Unicode characters being reformatted, or being
considered too long when they were not before (<a
href="https://docs.astral.sh/ruff/rules/line-too-long/"><code>E501</code></a>).</p>
</li>
</ul>
<h3>Removed Rules</h3>
<p>The following deprecated rules have been removed:</p>
<ul>
<li><a
href="https://docs.astral.sh/ruff/rules/missing-type-self/"><code>missing-type-self</code></a>
(<code>ANN101</code>)</li>
<li><a
href="https://docs.astral.sh/ruff/rules/missing-type-cls/"><code>missing-type-cls</code></a>
(<code>ANN102</code>)</li>
<li><a
href="https://docs.astral.sh/ruff/rules/syntax-error/"><code>syntax-error</code></a>
(<code>E999</code>)</li>
<li><a
href="https://docs.astral.sh/ruff/rules/pytest-missing-fixture-name-underscore/"><code>pytest-missing-fixture-name-underscore</code></a>
(<code>PT004</code>)</li>
<li><a
href="https://docs.astral.sh/ruff/rules/pytest-incorrect-fixture-name-underscore/"><code>pytest-incorrect-fixture-name-underscore</code></a>
(<code>PT005</code>)</li>
<li><a
href="https://docs.astral.sh/ruff/rules/unpacked-list-comprehension/"><code>unpacked-list-comprehension</code></a>
(<code>UP027</code>)</li>
</ul>
<h3>Remapped rules</h3>
<p>The following rules have been remapped to new rule codes:</p>
<ul>
<li><a
href="https://docs.astral.sh/ruff/rules/#flake8-type-checking-tc"><code>flake8-type-checking</code></a>:
<code>TCH</code> to <code>TC</code></li>
</ul>
<h3>Stabilization</h3>
<!-- 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.8.0</h2>
<p>Check out the <a href="https://astral.sh/blog/ruff-v0.8.0">blog
post</a> for a migration guide and overview of the changes!</p>
<h3>Breaking changes</h3>
<p>See also, the &quot;Remapped rules&quot; section which may result in
disabled rules.</p>
<ul>
<li>
<p><strong>Default to Python 3.9</strong></p>
<p>Ruff now defaults to Python 3.9 instead of 3.8 if no explicit Python
version is configured using <a
href="https://docs.astral.sh/ruff/settings/#target-version"><code>ruff.target-version</code></a>
or <a
href="https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#python-requires"><code>project.requires-python</code></a>
(<a
href="https://redirect.github.com/astral-sh/ruff/pull/13896">#13896</a>)</p>
</li>
<li>
<p><strong>Changed location of <code>pydoclint</code>
diagnostics</strong></p>
<p><a
href="https://docs.astral.sh/ruff/rules/#pydoclint-doc"><code>pydoclint</code></a>
diagnostics now point to the first-line of the problematic docstring.
Previously, this was not the case.</p>
<p>If you've opted into these preview rules but have them suppressed
using
<a
href="https://docs.astral.sh/ruff/linter/#error-suppression"><code>noqa</code></a>
comments in
some places, this change may mean that you need to move the
<code>noqa</code> suppression
comments. Most users should be unaffected by this change.</p>
</li>
<li>
<p><strong>Use XDG (i.e. <code>~/.local/bin</code>) instead of the Cargo
home directory in the standalone installer</strong></p>
<p>Previously, Ruff's installer used <code>$CARGO_HOME</code> or
<code>~/.cargo/bin</code> for its target install directory. Now, Ruff
will be installed into <code>$XDG_BIN_HOME</code>,
<code>$XDG_DATA_HOME/../bin</code>, or <code>~/.local/bin</code> (in
that order).</p>
<p>This change is only relevant to users of the standalone Ruff
installer (using the shell or PowerShell script). If you installed Ruff
using uv or pip, you should be unaffected.</p>
</li>
<li>
<p><strong>Changes to the line width calculation</strong></p>
<p>Ruff now uses a new version of the <a
href="https://github.com/unicode-rs/unicode-width">unicode-width</a>
Rust crate to calculate the line width. In very rare cases, this may
lead to lines containing Unicode characters being reformatted, or being
considered too long when they were not before (<a
href="https://docs.astral.sh/ruff/rules/line-too-long/"><code>E501</code></a>).</p>
</li>
</ul>
<h3>Removed Rules</h3>
<p>The following deprecated rules have been removed:</p>
<ul>
<li><a
href="https://docs.astral.sh/ruff/rules/missing-type-self/"><code>missing-type-self</code></a>
(<code>ANN101</code>)</li>
<li><a
href="https://docs.astral.sh/ruff/rules/missing-type-cls/"><code>missing-type-cls</code></a>
(<code>ANN102</code>)</li>
<li><a
href="https://docs.astral.sh/ruff/rules/syntax-error/"><code>syntax-error</code></a>
(<code>E999</code>)</li>
<li><a
href="https://docs.astral.sh/ruff/rules/pytest-missing-fixture-name-underscore/"><code>pytest-missing-fixture-name-underscore</code></a>
(<code>PT004</code>)</li>
<li><a
href="https://docs.astral.sh/ruff/rules/pytest-incorrect-fixture-name-underscore/"><code>pytest-incorrect-fixture-name-underscore</code></a>
(<code>PT005</code>)</li>
<li><a
href="https://docs.astral.sh/ruff/rules/unpacked-list-comprehension/"><code>unpacked-list-comprehension</code></a>
(<code>UP027</code>)</li>
</ul>
<h3>Remapped rules</h3>
<p>The following rules have been remapped to new rule codes:</p>
<ul>
<li><a
href="https://docs.astral.sh/ruff/rules/#flake8-type-checking-tc"><code>flake8-type-checking</code></a>:
<code>TCH</code> to <code>TC</code></li>
</ul>
<h3>Stabilization</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/astral-sh/ruff/commit/a90e404c3f010446ab8c18b4793c78834eeb65b7"><code>a90e404</code></a>
[red-knot] PEP 695 type aliases (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14357">#14357</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/8358ad8d251a8c72a679202b5d667bbcb24639c3"><code>8358ad8</code></a>
Ruff 0.8 release (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14486">#14486</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/2b8b1ef1781fddc89ab67765d855879f28607dae"><code>2b8b1ef</code></a>
Improve docs for some pycodestyle rules (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14517">#14517</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/2efa3fbb627cc6ebed71283195f59c4e2caddd9d"><code>2efa3fb</code></a>
[<code>flake8-import-conventions</code>] Syntax check aliases supplied
in configuration ...</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/b9da4305e6ebbd42efa6735e564b77695e2c65cd"><code>b9da430</code></a>
doc(B024): <a
href="https://redirect.github.com/astral-sh/ruff/issues/14455">#14455</a>
add annotated but unassgined class variables (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14502">#14502</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/87043a2415339d1db5294b93cc51b735f170ac0c"><code>87043a2</code></a>
Limit type size assertion to 64bit (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14514">#14514</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/f684b6fff4c13350a455d2d6e681c5422edd7d67"><code>f684b6f</code></a>
[red-knot] Fix: Infer type for typing.Union[..] tuple expression (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14510">#14510</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/47f39ed1a07d9dde4b7a70383f169db36f4aa74e"><code>47f39ed</code></a>
[red-knot] Meta data for <code>Type::Todo</code> (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14500">#14500</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/aecdb8c144d7e21b71a47e75ea84bd25518f13da"><code>aecdb8c</code></a>
[red-knot] support <code>typing.Union</code> in type annotations (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14499">#14499</a>)</li>
<li><a
href="https://github.com/astral-sh/ruff/commit/3c52d2d1bd8042d98415f70ecc8d6402795756ef"><code>3c52d2d</code></a>
Improve the performance of the formatter instability check job (<a
href="https://redirect.github.com/astral-sh/ruff/issues/14471">#14471</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/astral-sh/ruff/compare/0.7.4...0.8.0">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.7.4&new-version=0.8.0)](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 Nov 25, 2024
2 parents 7e21202 + 5e3e66e commit 7deec5d
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.7.5"
ruff = ">=0.5.1,<0.8.1"
yapf = ">=0.40.1,<0.44.0"

[build-system]
Expand Down

0 comments on commit 7deec5d

Please sign in to comment.