Skip to content

Commit 5197833

Browse files
style: pre-commit fixes
1 parent 7321e3c commit 5197833

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/scikit_build_core/resources/_editable_redirect.py

+6-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
@@ -78,6 +78,7 @@ def release(self) -> None:
7878
fcntl.flock(self.lock_file_fd, fcntl.LOCK_UN)
7979
os.close(self.lock_file_fd)
8080

81+
8182
# Note: This solution relies on importlib's call stack in Python 3.11. Python 3.9 looks
8283
# different, so might require a different solution, but I haven't gone deeper into that
8384
# yet since I don't have a solution for the 3.11 case yet anyway.
@@ -175,7 +176,9 @@ def find_spec(
175176
submodule_search_locations=submodule_search_locations
176177
if redir.endswith(("__init__.py", "__init__.pyc"))
177178
else None,
178-
loader=ScikitBuildRedirectingLoader(fullname, os.path.join(self.dir, redir)),
179+
loader=ScikitBuildRedirectingLoader(
180+
fullname, os.path.join(self.dir, redir)
181+
),
179182
)
180183
if fullname in self.known_source_files:
181184
redir = self.known_source_files[fullname]

0 commit comments

Comments
 (0)