Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Nicholas A. Yager <[email protected]>
  • Loading branch information
dave-connors-3 and nicholasyager authored May 7, 2024
1 parent 2b0784c commit ba0678f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dbt_meshify/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def bump_version(

if latest and increment:
raise FatalMeshifyException(
"Cannot specify both --latest and --prerelease. Please choose one or the other."
"Cannot specify both --latest and --increment. Please choose one or the other."
)

latest_version_behavior = LatestVersionBehavior.Prerelease
Expand Down Expand Up @@ -463,7 +463,7 @@ def version(
"""
if latest and increment:
raise FatalMeshifyException(
"Cannot specify both --latest and --prerelease. Please choose one or the other."
"Cannot specify both --latest and --increment. Please choose one or the other."
)

latest_version_behavior = LatestVersionBehavior.Prerelease
Expand Down
3 changes: 1 addition & 2 deletions dbt_meshify/utilities/versioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


class LatestVersionBehavior(str, Enum):
"""An operation describes the type of work being performed."""
"""The type of behavior applied to `latest_version` when updating model versions"""

Prerelease = "prerelease"
Increment = "increment"
Expand Down Expand Up @@ -171,7 +171,6 @@ def bump_version(
LatestVersionBehavior.Latest: greatest_version + 1,
}

# import ipdb; ipdb.set_trace()

new_latest_version_number = latest_version_number_map[latest_version_behavior]
# Setup the new version definitions
Expand Down

0 comments on commit ba0678f

Please sign in to comment.