Skip to content
Merged
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
3 changes: 3 additions & 0 deletions Lib/test/.ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ extend-exclude = [
# New grammar constructions may not yet be recognized by Ruff,
# and tests re-use the same names as only the grammar is being checked.
"test_grammar.py",
# Ruff does not yet accept `_` as a keyword name in a class pattern
# (astral-sh/ruff#31300)
Comment on lines +17 to +18

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Let's match the comment in main and 3.15:

Suggested change
# Ruff does not yet accept `_` as a keyword name in a class pattern
# (astral-sh/ruff#31300)
# Unary plus literal pattern is not yet supported by Ruff (GH-145239)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But that's not why this line is here -- apparently that pattern isn't used in 3.14. But the new underscore-as-keyword test does upset that ruff version.

"test_patma.py",
]

[lint]
Expand Down
Loading