From 5d22eba473bfb46adc1318950ea9bce830e2f355 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 31 Jan 2025 13:24:52 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- cibuildwheel/util/packaging.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cibuildwheel/util/packaging.py b/cibuildwheel/util/packaging.py index a9879eb6d..282f5a8e4 100644 --- a/cibuildwheel/util/packaging.py +++ b/cibuildwheel/util/packaging.py @@ -66,9 +66,9 @@ def get_for_python_version( constraint_file.write_text("\n".join(self.packages)) return constraint_file - assert ( - self.base_file_path is not None - ), "DependencyConstraints should have either a file or packages" + assert self.base_file_path is not None, ( + "DependencyConstraints should have either a file or packages" + ) version_parts = version.split(".") @@ -89,9 +89,9 @@ def options_summary(self) -> Any: elif self.packages: return {"packages": " ".join(shlex.quote(p) for p in self.packages)} else: - assert ( - self.base_file_path is not None - ), "DependencyConstraints should have either a file or packages" + assert self.base_file_path is not None, ( + "DependencyConstraints should have either a file or packages" + ) return self.base_file_path.name