https://github.com/python/cpython/commit/18235861c9b3b9653be963f1d9e1e216e4e41c28
commit: 18235861c9b3b9653be963f1d9e1e216e4e41c28
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2026-08-30T15:38:41+03:00
summary:

[3.15] Enable linting of lazy import tests (GH-156624) (#156655)

Enable linting of lazy import tests (GH-156624)
(cherry picked from commit d59d4e747c76d39a6ac80025cff4686a9fa96eaf)

Co-authored-by: David Vo <[email protected]>

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