Skip to content

Commit

Permalink
fix: skip version checking for dev (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
RemyLau authored Jun 16, 2023
1 parent 2479c74 commit 9822bf5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/obnb/util/checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@

def checkVersion(version: str):
"""Check if the current version is up to date."""
is_outdated, latest_version = check_outdated("obnb", version)
if is_outdated:
warnings.warn(
f"A new OBNB version {latest_version!r} is available "
f"(current version: {version!r}).",
UserWarning,
stacklevel=2,
)
if "dev" not in version:
is_outdated, latest_version = check_outdated("obnb", version)
if is_outdated:
warnings.warn(
f"A new OBNB version {latest_version!r} is available "
f"(current version: {version!r}).",
UserWarning,
stacklevel=2,
)


def checkValuePositive(name, val):
Expand Down

0 comments on commit 9822bf5

Please sign in to comment.