Skip to content

Commit 6752e0f

Browse files
committed
precommit fix
1 parent 95114bd commit 6752e0f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

codeflash/code_utils/version_check.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
import requests
88
from packaging import version
99

10-
from codeflash.cli_cmds.console import console, logger
10+
from codeflash.cli_cmds.console import logger
1111
from codeflash.version import __version__
1212

1313
# Simple cache to avoid checking too frequently
14-
_version_cache = {"version": '0.0.0', "timestamp": float(0)}
14+
_version_cache = {"version": "0.0.0", "timestamp": float(0)}
1515
_cache_duration = 3600 # 1 hour cache
1616

1717

@@ -69,10 +69,8 @@ def check_for_newer_minor_version() -> None:
6969

7070
# Check if there's a newer minor version available
7171
# We only notify for minor version updates, not patch updates
72-
if latest_parsed > current_parsed: # < > == operators can be directly applied on version objects
73-
logger.warning(
74-
f"A newer version({latest_version}) of Codeflash is available, please update soon!"
75-
)
72+
if latest_parsed > current_parsed: # < > == operators can be directly applied on version objects
73+
logger.warning(f"A newer version({latest_version}) of Codeflash is available, please update soon!")
7674

7775
except version.InvalidVersion as e:
7876
logger.debug(f"Invalid version format: {e}")

0 commit comments

Comments
 (0)