Skip to content

Commit 6da2288

Browse files
committed
Enable linting of lazy import tests
Ruff 0.15.6 added support for lazy import parsing.
1 parent f81c03a commit 6da2288

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Lib/test/.ruff.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ extend-exclude = [
1414
# New grammar constructions may not yet be recognized by Ruff,
1515
# and tests re-use the same names as only the grammar is being checked.
1616
"test_grammar.py",
17-
# Lazy import syntax (PEP 810) is not yet supported by Ruff
18-
"test_lazy_import/__init__.py",
19-
"test_lazy_import/data/*.py",
20-
"test_lazy_import/data/**/*.py",
17+
# Intentional bad lazy import syntax
18+
"test_lazy_import/data/badsyntax/*.py",
2119
# Unary plus literal pattern is not yet supported by Ruff (GH-145239)
2220
"test_patma.py",
2321
]
@@ -30,6 +28,7 @@ select = [
3028

3129
[lint.per-file-ignores]
3230
"*/**/__main__.py" = ["F401"] # Unused import
31+
"test_lazy_import/**/*.py" = ["F401"] # Unused import
3332
"test_import/*.py" = ["F401"] # Unused import
3433
"test_importlib/*.py" = ["F401"] # Unused import
3534
"typinganndata/partialexecution/*.py" = ["F401"] # Unused import

0 commit comments

Comments
 (0)