From 0b8e3dd062734f1a3628777c06fac77910c400b4 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 27 Nov 2025 11:32:32 -0500 Subject: [PATCH] delete cython in place files before running pep8 slotscheck otherwise can get confused if there are stale .so files present Change-Id: Ic855101f7ad6c92d2404331408ca6f02db0c49be --- noxfile.py | 5 +++++ 1 file changed, 5 insertions(+) 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")) -- 2.47.3