Skip to content

Commit 02d3357

Browse files
committed
fix: minor fixes for tests and checking
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 509804c commit 02d3357

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ exclude = []
271271
"tests/**" = ["T20"]
272272
"noxfile.py" = ["T20", "TID251"]
273273
"src/scikit_build_core/resources/*.py" = ["PTH", "ARG002", "FBT", "TID251"]
274+
"src/scikit_build_core/resources/_editable_redirect.py" = ["TRY002"]
274275
"src/scikit_build_core/_compat/**.py" = ["TID251"]
275276
"tests/conftest.py" = ["TID251"]
276277
"docs/conf.py" = ["TID251"]

src/scikit_build_core/resources/_editable_redirect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from __future__ import annotations
22

3+
import abc
34
import os
45
import subprocess
56
import sys
67
import typing
7-
from abc import ABC
88
from importlib.abc import (
99
ExecutionLoader,
1010
MetaPathFinder,
@@ -142,7 +142,7 @@ def create_module(self, spec: Any) -> Any:
142142
# - Must handle the path redirections
143143

144144

145-
class SKBuildTraversable(Traversable, ABC):
145+
class SKBuildTraversable(Traversable, metaclass=abc.ABCMeta):
146146
def __init__(self, tree: SKBuildTree, module: str) -> None:
147147
self._tree = tree
148148
self._module = module

0 commit comments

Comments
 (0)