Skip to content

Commit b60fb11

Browse files
committed
Address ruff errors
Signed-off-by: Michał Górny <mgorny@gentoo.org>
1 parent 888ad04 commit b60fb11

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

mesonpy/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,13 +1115,17 @@ def sdist(self, directory: Path) -> pathlib.Path:
11151115
def wheel(self, directory: Path) -> pathlib.Path:
11161116
"""Generates a wheel in the specified directory."""
11171117
self.build()
1118-
builder = _WheelBuilder(self._metadata, self._manifest, self._limited_api, self._allow_windows_shared_libs, self._is_cross, self._build_details)
1118+
builder = _WheelBuilder(
1119+
self._metadata, self._manifest, self._limited_api, self._allow_windows_shared_libs,
1120+
self._is_cross, self._build_details)
11191121
return builder.build(directory)
11201122

11211123
def editable(self, directory: Path) -> pathlib.Path:
11221124
"""Generates an editable wheel in the specified directory."""
11231125
self.build()
1124-
builder = _EditableWheelBuilder(self._metadata, self._manifest, self._limited_api, self._allow_windows_shared_libs, self._is_cross, self._build_details)
1126+
builder = _EditableWheelBuilder(
1127+
self._metadata, self._manifest, self._limited_api, self._allow_windows_shared_libs,
1128+
self._is_cross, self._build_details)
11251129
return builder.build(directory, self._source_dir, self._build_dir, self._build_command, self._editable_verbose)
11261130

11271131

mesonpy/_tags.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ def get_platform_tag(build_details: Optional[dict] = None) -> str:
204204

205205

206206
class Tag:
207-
def __init__(self, interpreter: Optional[str] = None, abi: Optional[str] = None, platform: Optional[str] = None, build_details: Optional[dict] = None):
207+
def __init__(self, interpreter: Optional[str] = None, abi: Optional[str] = None, platform: Optional[str] = None,
208+
build_details: Optional[dict] = None):
208209
self.interpreter = interpreter or get_interpreter_tag(build_details)
209210
self.abi = abi or get_abi_tag(build_details)
210211
self.platform = platform or get_platform_tag(build_details)

0 commit comments

Comments
 (0)