Skip to content

Commit 3e6ad7c

Browse files
committed
chore: minor cleanup from refurb and shed
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 678ad67 commit 3e6ad7c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/scikit_build_core/build/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def build_wheel(
1717
config_settings: dict[str, list[str] | str] | None = None,
1818
metadata_directory: str | None = None,
1919
) -> str:
20-
from ..errors import FailedLiveProcessError
2120
from .._logging import rich_print
21+
from ..errors import FailedLiveProcessError
2222
from .wheel import build_wheel as skbuild_build_wheel
2323

2424
try:

src/scikit_build_core/builder/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def configure(
128128
cache_config["PYTHON_LIBRARY"] = python_library
129129

130130
# Modern Find Python
131-
for prefix in ["Python", "Python3"]:
131+
for prefix in ("Python", "Python3"):
132132
cache_config[f"{prefix}_EXECUTABLE"] = sys.executable
133133
cache_config[f"{prefix}_ROOT_DIR"] = sys.prefix
134134
cache_config[f"{prefix}_INCLUDE_DIR"] = python_include_dir

src/scikit_build_core/file_api/reply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def load(self) -> Index:
3333
Load the newest index.json file and return the Index object.
3434
"""
3535
index_file = sorted(self.base_dir.glob("index-*"))[-1]
36-
with open(index_file, encoding="utf-8") as f:
36+
with index_file.open(encoding="utf-8") as f:
3737
data = json.load(f)
3838

3939
return self.make_class(data, Index)

src/scikit_build_core/setuptools/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def cmake_extensions(
126126
settings = SettingsReader(Path("pyproject.toml"), {}).settings
127127

128128
assert attr == "cmake_extensions"
129-
assert len(value) > 0
129+
assert value
130130

131131
assert (
132132
not settings.wheel.expand_macos_universal_tags

0 commit comments

Comments
 (0)