Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version: astral-sh.ruff version 0.9.0 #209246

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions manifests/a/astral-sh/ruff/0.9.0/astral-sh.ruff.installer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.9.0.schema.json

PackageIdentifier: astral-sh.ruff
PackageVersion: 0.9.0
InstallerType: zip
NestedInstallerType: portable
NestedInstallerFiles:
- RelativeFilePath: ruff.exe
Installers:
- Architecture: x86
InstallerUrl: https://github.com/astral-sh/ruff/releases/download/0.9.0/ruff-i686-pc-windows-msvc.zip
InstallerSha256: 7AB0393909605BEDB8DB948366DBE811A9568F4A0B7FB7DF109829F81530A18E
Dependencies:
PackageDependencies:
- PackageIdentifier: Microsoft.VCRedist.2015+.x86
- Architecture: x64
InstallerUrl: https://github.com/astral-sh/ruff/releases/download/0.9.0/ruff-x86_64-pc-windows-msvc.zip
InstallerSha256: 3E9DB77D8F91977F8F00FBCE61A2A5F3CD747CEAF24AEE03309D114233FE8FBF
Dependencies:
PackageDependencies:
- PackageIdentifier: Microsoft.VCRedist.2015+.x64
- Architecture: arm64
InstallerUrl: https://github.com/astral-sh/ruff/releases/download/0.9.0/ruff-aarch64-pc-windows-msvc.zip
InstallerSha256: 0A027F0966DE7A2FEDEF4C0B5C21D0E78A4711D3A4F8C413B643C564315DB42D
Dependencies:
PackageDependencies:
- PackageIdentifier: Microsoft.VCRedist.2015+.arm64
ManifestType: installer
ManifestVersion: 1.9.0
ReleaseDate: 2025-01-09
115 changes: 115 additions & 0 deletions manifests/a/astral-sh/ruff/0.9.0/astral-sh.ruff.locale.en-US.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.9.0.schema.json

PackageIdentifier: astral-sh.ruff
PackageVersion: 0.9.0
PackageLocale: en-US
Publisher: Astral
PublisherUrl: https://github.com/astral-sh
# PublisherSupportUrl:
# PrivacyUrl:
# Author:
PackageName: Ruff
# PackageUrl:
License: MIT
LicenseUrl: https://github.com/astral-sh/ruff/blob/HEAD/LICENSE
# Copyright:
# CopyrightUrl:
ShortDescription: An extremely fast Python linter, written in Rust.
# Description:
# Moniker:
Tags:
- linter
- pep8
- python
- python3
- ruff
- rust
- rustpython
- static-analysis
- static-code-analysis
- styleguide
- style-guide
ReleaseNotes: |-
Check out the blog post for a migration guide and overview of the changes!

Breaking changes
Ruff now formats your code according to the 2025 style guide. As a result, your code might now get formatted differently. See the formatter section for a detailed list of changes.

This release doesn’t remove or remap any existing stable rules.

Stabilization
The following rules have been stabilized and are no longer in preview:

- `stdlib-module-shadowing` (A005).
This rule has also been renamed: previously, it was called `builtin-module-shadowing`.
- `builtin-lambda-argument-shadowing` (A006)
- `slice-to-remove-prefix-or-suffix` (FURB188)
- `boolean-chained-comparison` (PLR1716)
- `decimal-from-float-literal` (RUF032)
- `post-init-default` (RUF033)
- `useless-if-else` (RUF034)

The following behaviors have been stabilized:

- `pytest-parametrize-names-wrong-type` (PT006): Detect `pytest.parametrize` calls outside decorators and calls with keyword arguments.
- `module-import-not-at-top-of-file` (E402): Ignore `pytest.importorskip` calls between import statements.
- `mutable-dataclass-default` (RUF008) and `function-call-in-dataclass-default-argument` (RUF009): Add support for `attrs`.
- `bad-version-info-comparison` (PYI006): Extend the rule to check non-stub files.

The following fixes or improvements to fixes have been stabilized:

- `redundant-numeric-union` (PYI041)
- `duplicate-union-members` (PYI016)

Formatter
This release introduces the new 2025 stable style (#13371), stabilizing the following changes:

- Format expressions in f-string elements (#7594)
- Alternate quotes for strings inside f-strings (#13860)
- Preserve the casing of hex codes in f-string debug expressions (#14766)
- Choose the quote style for each string literal in an implicitly concatenated f-string rather than for the entire string (#13539)
- Automatically join an implicitly concatenated string into a single string literal if it fits on a single line (#9457)
- Remove the ISC001 incompatibility warning (#15123)
- Prefer parenthesizing the `assert` message over breaking the assertion expression (#9457)
- Automatically parenthesize over-long `if` guards in `match` `case` clauses (#13513)
- More consistent formatting for `match` `case` patterns (#6933)
- Avoid unnecessary parentheses around return type annotations (#13381)
- Keep the opening parentheses on the same line as the `if` keyword for comprehensions where the condition has a leading comment (#12282)
- More consistent formatting for `with` statements with a single context manager for Python 3.8 or older (#10276)
- Correctly calculate the line-width for code blocks in docstrings when using `max-doc-code-line-length = "dynamic"` (#13523)

Preview features
- [flake8-bugbear] Implement `class-as-data-structure` (B903) (#9601)
- [flake8-type-checking] Apply `quoted-type-alias` more eagerly in `TYPE_CHECKING` blocks and ignore it in stubs (TC008) (#15180)
- [pylint] Ignore `eq-without-hash` in stub files (PLW1641) (#15310)
- [pyupgrade] Split UP007 into two individual rules: UP007 for `Union` and UP045 for `Optional` (UP007, UP045) (#15313)
- [ruff] New rule that detects classes that are both an enum and a `dataclass` (RUF049) (#15299)
- [ruff] Recode RUF025 to RUF037 (RUF037) (#15258)

Rule changes
- [flake8-builtins] Ignore `stdlib-module-shadowing` in stub files(A005) (#15350)
- [flake8-return] Add support for functions returning `typing.Never` (RET503) (#15298)

Server
- Improve the observability by removing the need for the "trace" value to turn on or off logging. The server logging is solely controlled using the `logLevel` server setting
which defaults to `info`. This addresses the issue where users were notified about an error and told to consult the log, but it didn’t contain any messages. (#15232)
- Ignore diagnostics from other sources for code action requests (#15373)

CLI
- Improve the error message for `--config key=value` when the `key` is for a table and it’s a simple `value`

Bug fixes
- [eradicate] Ignore metadata blocks directly followed by normal blocks (ERA001) (#15330)
- [flake8-django] Recognize other magic methods (DJ012) (#15365)
- [pycodestyle] Avoid false positives related to type aliases (E252) (#15356)
- [pydocstyle] Avoid treating newline-separated sections as sub-sections (D405) (#15311)
- [pyflakes] Remove call when removing final argument from `format` (F523) (#15309)
- [refurb] Mark fix as unsafe when the right-hand side is a string (FURB171) (#15273)
- [ruff] Treat `)` as a regex metacharacter (RUF043, RUF055) (#15318)
- [ruff] Parenthesize the `int`-call argument when removing the `int` call would change semantics (RUF046) (#15277)
ReleaseNotesUrl: https://github.com/astral-sh/ruff/releases/tag/0.9.0
# PurchaseUrl:
# InstallationNotes:
# Documentations:
ManifestType: defaultLocale
ManifestVersion: 1.9.0
7 changes: 7 additions & 0 deletions manifests/a/astral-sh/ruff/0.9.0/astral-sh.ruff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.9.0.schema.json

PackageIdentifier: astral-sh.ruff
PackageVersion: 0.9.0
DefaultLocale: en-US
ManifestType: version
ManifestVersion: 1.9.0