From: Mike Bayer Date: Thu, 27 Nov 2025 16:32:32 +0000 (-0500) Subject: delete cython in place files before running pep8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b8e3dd062734f1a3628777c06fac77910c400b4;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git delete cython in place files before running pep8 slotscheck otherwise can get confused if there are stale .so files present Change-Id: Ic855101f7ad6c92d2404331408ca6f02db0c49be --- diff --git a/noxfile.py b/noxfile.py index a7309a6c77..9afd989673 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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"))