Skip to content

Commit

Permalink
build(deps-dev): Bump ruff from 0.7.4 to 0.8.0 in the development-dep…
Browse files Browse the repository at this point in the history
…endencies group (#544)

Bumps the development-dependencies group with 1 update:
[ruff](https://github.com/astral-sh/ruff).

Updates `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 <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Nov 25, 2024
1 parent a0fd13b commit 3fc2911
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
42 changes: 22 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 @@ -46,7 +46,7 @@ extras = ["faker"]
faker = ">=18.5.1"
mypy = ">=1.8.0"
pre-commit = ">=3.0.4"
ruff = "~=0.7.0"
ruff = "~=0.8.0"
pydocstyle = ">=6.1.1"
tox = "~=4"
types-paramiko = ">=3.3.0.0"
Expand Down

0 comments on commit 3fc2911

Please sign in to comment.