https://github.com/python/cpython/commit/d59d4e747c76d39a6ac80025cff4686a9fa96eaf
commit: d59d4e747c76d39a6ac80025cff4686a9fa96eaf
branch: main
author: David Vo <[email protected]>
committer: hugovk <[email protected]>
date: 2026-08-30T15:02:59+03:00
summary:

Enable linting of lazy import tests (#156624)

files:
M Lib/test/.ruff.toml

diff --git a/Lib/test/.ruff.toml b/Lib/test/.ruff.toml
index dca74eb6e14bbd..da4f32a01bccf5 100644
--- a/Lib/test/.ruff.toml
+++ b/Lib/test/.ruff.toml
@@ -14,10 +14,8 @@ 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",
-    # Lazy import syntax (PEP 810) is not yet supported by Ruff
-    "test_lazy_import/__init__.py",
-    "test_lazy_import/data/*.py",
-    "test_lazy_import/data/**/*.py",
+    # Intentional bad lazy import syntax
+    "test_lazy_import/data/badsyntax/*.py",
     # Unary plus literal pattern is not yet supported by Ruff (GH-145239)
     "test_patma.py",
 ]
@@ -32,4 +30,5 @@ select = [
 "*/**/__main__.py" = ["F401"]  # Unused import
 "test_import/*.py" = ["F401"]  # Unused import
 "test_importlib/*.py" = ["F401"]  # Unused import
+"test_lazy_import/**/*.py" = ["F401"]  # Unused import
 "typinganndata/partialexecution/*.py" = ["F401"]  # Unused import

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to