mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-10-08 21:06:28 +08:00
Bump ruff from 0.12.12 to 0.13.0 (#945)
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.12.12 to 0.13.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.13.0</h2> <h2>Release Notes</h2> <p>Check out the <a href="https://astral.sh/blog/ruff-v0.13.0">blog post</a> for a migration guide and overview of the changes!</p> <h3>Breaking changes</h3> <ul> <li> <p><strong>Several rules can now add <code>from __future__ import annotations</code> automatically</strong></p> <p><code>TC001</code>, <code>TC002</code>, <code>TC003</code>, <code>RUF013</code>, and <code>UP037</code> now add <code>from __future__ import annotations</code> as part of their fixes when the <code>lint.future-annotations</code> setting is enabled. This allows the rules to move more imports into <code>TYPE_CHECKING</code> blocks (<code>TC001</code>, <code>TC002</code>, and <code>TC003</code>), use PEP 604 union syntax on Python versions before 3.10 (<code>RUF013</code>), and unquote more annotations (<code>UP037</code>).</p> </li> <li> <p><strong>Full module paths are now used to verify first-party modules</strong></p> <p>Ruff now checks that the full path to a module exists on disk before categorizing it as a first-party import. This change makes first-party import detection more accurate, helping to avoid false positives on local directories with the same name as a third-party dependency, for example. See the <a href="https://docs.astral.sh/ruff/faq/#how-does-ruff-determine-which-of-my-imports-are-first-party-third-party-etc">FAQ section</a> on import categorization for more details.</p> </li> <li> <p><strong>Deprecated rules must now be selected by exact rule code</strong></p> <p>Ruff will no longer activate deprecated rules selected by their group name or prefix. As noted below, the two remaining deprecated rules were also removed in this release, so this won't affect any current rules, but it will still affect any deprecations in the future.</p> </li> <li> <p><strong>The deprecated macOS configuration directory fallback has been removed</strong></p> <p>Ruff will no longer look for a user-level configuration file at <code>~/Library/Application Support/ruff/ruff.toml</code> on macOS. This feature was deprecated in v0.5 in favor of using the <a href="https://specifications.freedesktop.org/basedir-spec/latest/">XDG specification</a> (usually resolving to <code>~/.config/ruff/ruff.toml</code>), like on Linux. The fallback and accompanying deprecation warning have now been removed.</p> </li> </ul> <h3>Removed Rules</h3> <p>The following rules have been removed:</p> <ul> <li><a href="https://docs.astral.sh/ruff/rules/pandas-df-variable-name"><code>pandas-df-variable-name</code></a> (<code>PD901</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/non-pep604-isinstance"><code>non-pep604-isinstance</code></a> (<code>UP038</code>)</li> </ul> <h3>Stabilization</h3> <p>The following rules have been stabilized and are no longer in preview:</p> <ul> <li><a href="https://docs.astral.sh/ruff/rules/airflow-dag-no-schedule-argument"><code>airflow-dag-no-schedule-argument</code></a> (<code>AIR002</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/airflow3-removal"><code>airflow3-removal</code></a> (<code>AIR301</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/airflow3-moved-to-provider"><code>airflow3-moved-to-provider</code></a> (<code>AIR302</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/airflow3-suggested-update"><code>airflow3-suggested-update</code></a> (<code>AIR311</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/airflow3-suggested-to-move-to-provider"><code>airflow3-suggested-to-move-to-provider</code></a> (<code>AIR312</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/long-sleep-not-forever"><code>long-sleep-not-forever</code></a> (<code>ASYNC116</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/f-string-number-format"><code>f-string-number-format</code></a> (<code>FURB116</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/os-symlink"><code>os-symlink</code></a> (<code>PTH211</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/generic-not-last-base-class"><code>generic-not-last-base-class</code></a> (<code>PYI059</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/redundant-none-literal"><code>redundant-none-literal</code></a> (<code>PYI061</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/pytest-raises-ambiguous-pattern"><code>pytest-raises-ambiguous-pattern</code></a> (<code>RUF043</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/unused-unpacked-variable"><code>unused-unpacked-variable</code></a> (<code>RUF059</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/useless-class-metaclass-type"><code>useless-class-metaclass-type</code></a> (<code>UP050</code>)</li> </ul> <p>The following behaviors have been stabilized:</p> <!-- 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.13.0</h2> <p>Check out the <a href="https://astral.sh/blog/ruff-v0.13.0">blog post</a> for a migration guide and overview of the changes!</p> <h3>Breaking changes</h3> <ul> <li> <p><strong>Several rules can now add <code>from __future__ import annotations</code> automatically</strong></p> <p><code>TC001</code>, <code>TC002</code>, <code>TC003</code>, <code>RUF013</code>, and <code>UP037</code> now add <code>from __future__ import annotations</code> as part of their fixes when the <code>lint.future-annotations</code> setting is enabled. This allows the rules to move more imports into <code>TYPE_CHECKING</code> blocks (<code>TC001</code>, <code>TC002</code>, and <code>TC003</code>), use PEP 604 union syntax on Python versions before 3.10 (<code>RUF013</code>), and unquote more annotations (<code>UP037</code>).</p> </li> <li> <p><strong>Full module paths are now used to verify first-party modules</strong></p> <p>Ruff now checks that the full path to a module exists on disk before categorizing it as a first-party import. This change makes first-party import detection more accurate, helping to avoid false positives on local directories with the same name as a third-party dependency, for example. See the <a href="https://docs.astral.sh/ruff/faq/#how-does-ruff-determine-which-of-my-imports-are-first-party-third-party-etc">FAQ section</a> on import categorization for more details.</p> </li> <li> <p><strong>Deprecated rules must now be selected by exact rule code</strong></p> <p>Ruff will no longer activate deprecated rules selected by their group name or prefix. As noted below, the two remaining deprecated rules were also removed in this release, so this won't affect any current rules, but it will still affect any deprecations in the future.</p> </li> <li> <p><strong>The deprecated macOS configuration directory fallback has been removed</strong></p> <p>Ruff will no longer look for a user-level configuration file at <code>~/Library/Application Support/ruff/ruff.toml</code> on macOS. This feature was deprecated in v0.5 in favor of using the <a href="https://specifications.freedesktop.org/basedir-spec/latest/">XDG specification</a> (usually resolving to <code>~/.config/ruff/ruff.toml</code>), like on Linux. The fallback and accompanying deprecation warning have now been removed.</p> </li> </ul> <h3>Removed Rules</h3> <p>The following rules have been removed:</p> <ul> <li><a href="https://docs.astral.sh/ruff/rules/pandas-df-variable-name"><code>pandas-df-variable-name</code></a> (<code>PD901</code>)</li> <li><a href="https://docs.astral.sh/ruff/rules/non-pep604-isinstance"><code>non-pep604-isinstance</code></a> (<code>UP038</code>)</li> </ul> <h3>Stabilization</h3> <p>The following rules have been stabilized and are no longer in preview:</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="a1fdd66f10
"><code>a1fdd66</code></a> Bump 0.13.0 (<a href="https://redirect.github.com/astral-sh/ruff/issues/20336">#20336</a>)</li> <li><a href="8770b95509
"><code>8770b95</code></a> [ty] introduce <code>DivergentType</code> (<a href="https://redirect.github.com/astral-sh/ruff/issues/20312">#20312</a>)</li> <li><a href="65982a1e14
"><code>65982a1</code></a> [ty] Use 'unknown' specialization for upper bound on Self (<a href="https://redirect.github.com/astral-sh/ruff/issues/20325">#20325</a>)</li> <li><a href="57d1f7132d
"><code>57d1f71</code></a> [ty] Simplify unions of enum literals and subtypes thereof (<a href="https://redirect.github.com/astral-sh/ruff/issues/20324">#20324</a>)</li> <li><a href="7a75702237
"><code>7a75702</code></a> Ignore deprecated rules unless selected by exact code (<a href="https://redirect.github.com/astral-sh/ruff/issues/20167">#20167</a>)</li> <li><a href="9ca632c84f
"><code>9ca632c</code></a> Stabilize adding future import via config option (<a href="https://redirect.github.com/astral-sh/ruff/issues/20277">#20277</a>)</li> <li><a href="64fe7d30a3
"><code>64fe7d3</code></a> [<code>flake8-errmsg</code>] Stabilize extending <code>raw-string-in-exception</code> (<code>EM101</code>) to ...</li> <li><a href="beeeb8d5c5
"><code>beeeb8d</code></a> Stabilize the remaining Airflow rules (<a href="https://redirect.github.com/astral-sh/ruff/issues/20250">#20250</a>)</li> <li><a href="b6fca52855
"><code>b6fca52</code></a> [<code>flake8-bugbear</code>] Stabilize support for non-context-manager calls in `assert...</li> <li><a href="ac7f882c78
"><code>ac7f882</code></a> [<code>flake8-commas</code>] Stabilize support for trailing comma checks in type paramet...</li> <li>Additional commits viewable in <a href="https://github.com/astral-sh/ruff/compare/0.12.12...0.13.0">compare view</a></li> </ul> </details> <br /> [](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> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
parent
fc5f474e9f
commit
f1aa713bc5
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ Repository = "https://github.com/StuffAnThings/qbit_manage"
|
|||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"pre-commit==4.3.0",
|
||||
"ruff==0.12.12",
|
||||
"ruff==0.13.0",
|
||||
]
|
||||
|
||||
[tool.ruff]
|
||||
|
|
Loading…
Add table
Reference in a new issue