Skip to content

Commit

Permalink
Fix pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvothecoder committed Feb 26, 2025
1 parent a9c4c52 commit 7033584
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions xcdat/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,11 @@ def _validate_min_weight(min_weight: float | None) -> float:
return 0.0
elif min_weight < 0.0:
raise ValueError(
"min_weight argument is less than 0. " "min_weight must be between 0 and 1."
"min_weight argument is less than 0. min_weight must be between 0 and 1.",
)
elif min_weight > 1.0:
raise ValueError(
"min_weight argument is greater than 1. "
"min_weight must be between 0 and 1."
"min_weight argument is greater than 1. min_weight must be between 0 and 1.",
)

return min_weight

0 comments on commit 7033584

Please sign in to comment.