Skip to content

Commit ae0bf73

Browse files
style: pre-commit fixes
1 parent 3a5e526 commit ae0bf73

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

Diff for: src/scikit_build_core/resources/_editable_redirect.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from __future__ import annotations
22

33
import importlib.abc
4-
import importlib.util
54
import importlib.machinery
6-
import importlib.readers # Might be Python version specific?
5+
import importlib.readers # Might be Python version specific?
6+
import importlib.util
77
import os
88
import subprocess
99
import sys
@@ -115,7 +115,9 @@ def find_spec(
115115
fullname,
116116
os.path.join(self.dir, redir),
117117
submodule_search_locations=submodule_search_locations,
118-
loader=ScikitBuildRedirectingLoader(fullname, os.path.join(self.dir, redir)),
118+
loader=ScikitBuildRedirectingLoader(
119+
fullname, os.path.join(self.dir, redir)
120+
),
119121
)
120122
if fullname in self.known_source_files:
121123
redir = self.known_source_files[fullname]

Diff for: tests/packages/importlib_editable/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ python_add_library(example MODULE example/example.c WITH_SOABI)
1010

1111
install(TARGETS example DESTINATION example/)
1212
file(WRITE "${CMAKE_BINARY_DIR}/testfile" "This is the file")
13-
install(FILES "${CMAKE_BINARY_DIR}/testfile" DESTINATION example/)
13+
install(FILES "${CMAKE_BINARY_DIR}/testfile" DESTINATION example/)

Diff for: tests/test_editable.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys
2-
from pathlib import Path
32
import textwrap
3+
from pathlib import Path
44

55
import pytest
66
from conftest import PackageInfo, process_package
@@ -133,10 +133,14 @@ def test_importlib_resources(monkeypatch, tmp_path, editable, editable_mode, iso
133133
process_package(package1, tmp_path, m)
134134

135135
ninja = [
136-
"ninja" for f in isolated.wheelhouse.iterdir() if f.name.startswith("ninja-")
136+
"ninja"
137+
for f in isolated.wheelhouse.iterdir()
138+
if f.name.startswith("ninja-")
137139
]
138140
cmake = [
139-
"cmake" for f in isolated.wheelhouse.iterdir() if f.name.startswith("cmake-")
141+
"cmake"
142+
for f in isolated.wheelhouse.iterdir()
143+
if f.name.startswith("cmake-")
140144
]
141145

142146
isolated.install("pip>23")

0 commit comments

Comments
 (0)