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 Sep 21, 2024
1 parent b75cdb9 commit 68294e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package/PartSegImage/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,7 @@ def _name_to_rgb(name: str) -> tuple[int, int, int]:
raise ValueError(f"Unknown color name: {name}")

Check warning on line 994 in package/PartSegImage/image.py

View check run for this annotation

Codecov / codecov/patch

package/PartSegImage/image.py#L994

Added line #L994 was not covered by tests
return _hex_to_rgb(_NAMED_COLORS[name])


_NAMED_COLORS = {
"red": "#FF0000",
"green": "#00FF00",
Expand Down

0 comments on commit 68294e1

Please sign in to comment.