File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 77import requests
88from packaging import version
99
10- from codeflash .cli_cmds .console import console , logger
10+ from codeflash .cli_cmds .console import logger
1111from 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 } " )
You can’t perform that action at this time.
0 commit comments