Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 31, 2025
1 parent 870a1dd commit 5d22eba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cibuildwheel/util/packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(".")

Expand All @@ -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


Expand Down

0 comments on commit 5d22eba

Please sign in to comment.