File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments