Commit Briefs

3ffb1fc15a GitHub

Bump ruff (#1459) (master)


3a051fc783 Jelmer Vernooij

Fix typing


4de310b667 GitHub

Bump ruff from 0.7.4 to 0.8.0 (#1456)

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>


6b63699c40 Jelmer Vernooij

Reformat


2f089ab7a5 GitHub

Add limmat config (#1455)


4e921d16fb GitHub

Bump ruff from 0.7.4 to 0.8.0

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.7.4 to 0.8.0. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.7.4...0.8.0) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>


f46269ced5 Jelmer Vernooij

Bump ruff


50a24822a4 Jelmer Vernooij

Add limmat config


c329e989d1 GitHub

Readme: Python 3.9 is tested and required, not 3.6 (#1454)

Maybe I just misunderstood the Github Actions and Python required line.


4ab204e797 Jelmer Vernooij

Update NEWS


a6929ba093 Christoph Grüninger

Readme: Python 3.9 is tested and required, not 3.6


a8eff64288 GitHub

Add SPDX license identifier to source files (#1453)

SPDX license identifiers help tools to identify the right licenses. Especially detecting that the user can choose to GPL 2+ or Apache 2.0 is difficult to detect, it can be misinterpreted that the user has to comply with both licenses. Fixes #1451


3878e14307 Jelmer Vernooij

Fix test failures


d676c78b9c Christoph Grüninger

Add MIT SPDX license identifier for diffstat.py



5bd188b592 Jelmer Vernooij

Don't write test.idx to current path


9861693656 Christoph Grüninger

Add SPDX license identifier to COPYING and README.rst


b3c6c7199d Castedo Ellerman

add Tag.raw_without_sig method and unittest



2bb67c8b09 Jelmer Vernooij

Fix more typing issues


c0a8e05380 Christoph Grüninger

Add SPDX license identifier to Python files and shell scripts

SPDX does not offer an identifier for Apache 2.0 or any later version. Apache-2.0 is the closest identified.


315adde078 Castedo Ellerman

add new Commit.raw_without_sig method and unittest


83770f2922 GitHub

Add more type annotations (#1446)


8bb9c9e84d Jelmer Vernooij

Add more types, courtesy of ruff


6433f64c0a Jelmer Vernooij

ruff: Remove E741