mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-17 05:47:37 +00:00
Update default and latest Python versions for 3.14 (#20725)
Some checks are pending
CI / cargo build (release) (push) Waiting to run
CI / Determine changes (push) Waiting to run
CI / cargo fmt (push) Waiting to run
CI / cargo clippy (push) Blocked by required conditions
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / mkdocs (push) Waiting to run
CI / ecosystem (push) Blocked by required conditions
CI / Fuzz for new ty panics (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks instrumented (ruff) (push) Blocked by required conditions
CI / benchmarks instrumented (ty) (push) Blocked by required conditions
CI / benchmarks-walltime (push) Blocked by required conditions
[ty Playground] Release / publish (push) Waiting to run
Some checks are pending
CI / cargo build (release) (push) Waiting to run
CI / Determine changes (push) Waiting to run
CI / cargo fmt (push) Waiting to run
CI / cargo clippy (push) Blocked by required conditions
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / mkdocs (push) Waiting to run
CI / ecosystem (push) Blocked by required conditions
CI / Fuzz for new ty panics (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks instrumented (ruff) (push) Blocked by required conditions
CI / benchmarks instrumented (ty) (push) Blocked by required conditions
CI / benchmarks-walltime (push) Blocked by required conditions
[ty Playground] Release / publish (push) Waiting to run
Summary -- Closes #19467 and also removes the warning about using Python 3.14 without preview enabled. I also bumped `PythonVersion::default` to 3.9 because it reaches EOL this month, but we could also defer that for now if we wanted. The first three commits are related to the `latest` bump to 3.14; the fourth commit bumps the default to 3.10. Note that this PR also bumps the default Python version for ty to 3.10 because there was a test asserting that it stays in sync with `ast::PythonVersion`. Test Plan -- Existing tests I spot-checked the ecosystem report, and I believe these are all expected. Inbits doesn't specify a target Python version, so I guess we're applying the default. UP007, UP035, and UP045 all use the new default value to emit new diagnostics.
This commit is contained in:
parent
8fb29eafb8
commit
88c0ce3e38
88 changed files with 1640 additions and 1123 deletions
|
@ -56,7 +56,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Enabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -175,7 +175,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -351,7 +351,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -527,7 +527,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -703,7 +703,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -879,7 +879,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -1368,7 +1368,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -2740,7 +2740,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -4112,7 +4112,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -5484,7 +5484,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -6856,7 +6856,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Enabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -8221,7 +8221,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Enabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -9586,7 +9586,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Enabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -10960,7 +10960,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Enabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -12325,7 +12325,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Enabled
|
||||
docstring-code-line-width = 60
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -13699,7 +13699,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Enabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Enabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -308,7 +308,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Enabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -879,7 +879,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Enabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -1425,7 +1425,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Enabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -1996,7 +1996,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Enabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -184,7 +184,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -140,7 +140,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -296,7 +296,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -768,7 +768,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Enabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -1595,7 +1595,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Enabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -232,7 +232,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -482,7 +482,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -75,7 +75,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -37,7 +37,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -56,7 +56,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -68,7 +68,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -103,7 +103,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Ipynb
|
||||
```
|
||||
|
||||
|
@ -48,7 +48,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -167,7 +167,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Enabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -142,7 +142,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -216,7 +216,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Enabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -273,7 +273,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Enabled
|
||||
docstring-code-line-width = 88
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -160,7 +160,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -239,7 +239,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Stub
|
||||
```
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -109,7 +109,7 @@ magic-trailing-comma = Ignore
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
|
@ -201,7 +201,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Enabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Stub
|
||||
```
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Enabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Stub
|
||||
```
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -53,7 +53,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
@ -83,7 +83,7 @@ magic-trailing-comma = Respect
|
|||
docstring-code = Disabled
|
||||
docstring-code-line-width = "dynamic"
|
||||
preview = Disabled
|
||||
target_version = 3.9
|
||||
target_version = 3.10
|
||||
source_type = Python
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue