Pin mypy passing on loop_claude at the Python floor

This commit is contained in:
2026-09-29 15:46:09 +02:00
parent 89a66d37a0
commit 099e9e19a5
2 changed files with 23 additions and 3 deletions
+7 -3
View File
@@ -9,11 +9,15 @@ ROOT = pathlib.Path(__file__).resolve().parents[1]
FLOOR = re.compile(r"Python 3\.(\d+) or newer")
def readme_floor() -> tuple[int, int] | None:
named = FLOOR.search((ROOT / "README.md").read_text(encoding="utf-8"))
return (3, int(named.group(1))) if named else None
class PythonFloor(unittest.TestCase):
def test_the_suite_passes_on_the_python_the_readme_names_as_floor(self):
named = FLOOR.search((ROOT / "README.md").read_text(encoding="utf-8"))
self.assertIsNotNone(named, "README.md's Install names `Python 3.N or newer`")
floor = (3, int(named.group(1)))
floor = readme_floor()
self.assertIsNotNone(floor, "README.md's Install names `Python 3.N or newer`")
if sys.version_info[:2] == floor:
self.skipTest("this run is on the floor")
if shutil.which("uv") is None: