FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.14] gh-144639: Ruff: target Python 3.14 syntax in `Lib/test` (GH-144656) by hugovk · Pull Request #144710 · python/cpython · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .toml  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
12 changes: 2 additions & 10 deletions Lib/test/.ruff.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
extend = "../../.ruff.toml" # Inherit the project-wide settings

target-version = "py312"
# Unlike Tools/, tests can use newer syntax than PYTHON_FOR_REGEN
target-version = "py314"

extend-exclude = [
# Excluded (run with the other AC files in its own separate ruff job in pre-commit)
Expand All @@ -15,15 +16,6 @@ extend-exclude = [
"test_grammar.py",
]

[per-file-target-version]
# Type parameter defaults
"test_type_params.py" = "py313"

# Template string literals
"test_annotationlib.py" = "py314"
"test_string/test_templatelib.py" = "py314"
"test_tstring.py" = "py314"

[lint]
select = [
"F811", # Redefinition of unused variable (useful for finding test methods with the same name)
Expand Down
Loading

Back | FazBrowse Home | New Git URL