From 9b1f5b6a63c3e376893e105ec81ebec515354ade Mon Sep 17 00:00:00 2001 From: Loup-Garou911XD Date: Tue, 14 Jan 2025 22:46:36 +0000 Subject: [PATCH] [ci] auto-format --- test/get_latest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/get_latest.py b/test/get_latest.py index b3921b9..3dde5db 100644 --- a/test/get_latest.py +++ b/test/get_latest.py @@ -1,6 +1,7 @@ import json import sys + def get_latest_version(): """Get latest version entry from index.json""" with open('index.json', 'r') as file: @@ -8,6 +9,7 @@ def get_latest_version(): latest_version = list(content["versions"].keys())[0] return latest_version + def get_latest_api(): """Get latest api entry from index.json""" with open('index.json', 'r') as file: @@ -15,8 +17,9 @@ def get_latest_api(): latest_api = content["versions"][get_latest_version()]["api_version"] return latest_api + if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: python3 {__file__.split('/')[-1]} function") sys.exit(1) - print(globals()[sys.argv[1]]()) # used to call the fucntion passed as cli parameter \ No newline at end of file + print(globals()[sys.argv[1]]()) # used to call the fucntion passed as cli parameter