Skip to content

Commit

Permalink
revertting format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dgraeber committed Jun 10, 2024
1 parent e86c611 commit aad36fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions seedfarmer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ def upper_snake_case(value: str) -> str:
str
the string standardized
"""
if humps.is_camelcase(value): # type: ignore[attr-defined]
return humps.decamelize(value).upper() # type: ignore[attr-defined]
elif humps.is_pascalcase(value): # type: ignore[attr-defined]
return humps.depascalize(value).upper() # type: ignore[attr-defined]
if humps.is_camelcase(value):
return humps.decamelize(value).upper()
elif humps.is_pascalcase(value):
return humps.depascalize(value).upper()
else:
return value.replace("-", "_").upper()

Expand Down

0 comments on commit aad36fc

Please sign in to comment.