]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
delete cython in place files before running pep8
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 27 Nov 2025 16:32:32 +0000 (11:32 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 27 Nov 2025 16:32:32 +0000 (11:32 -0500)
slotscheck otherwise can get confused if there are stale
.so files present

Change-Id: Ic855101f7ad6c92d2404331408ca6f02db0c49be

noxfile.py

index a7309a6c770d8027c8981d86de2ab63635639eb2..9afd989673c9f3c35d322327393c815268ea6183 100644 (file)
@@ -3,6 +3,7 @@
 from __future__ import annotations
 
 import os
+from pathlib import Path
 import sys
 from typing import Dict
 from typing import List
@@ -354,6 +355,10 @@ def test_mypy(session: nox.Session) -> None:
 def test_pep8(session: nox.Session) -> None:
     """Run linting and formatting checks."""
 
+    for pattern in ["*.so", "*.pyd", "*.dylib"]:
+        for filepath in Path("lib/sqlalchemy").rglob(pattern):
+            filepath.unlink()
+
     session.install("-e", ".")
 
     session.install(*nox.project.dependency_groups(pyproject, "lint"))