From 0f4c361a51ccff793000fae2a83527882e5f4e82 Mon Sep 17 00:00:00 2001 From: Saeed Rasooli Date: Sat, 11 May 2024 20:32:43 +0330 Subject: [PATCH] ruff: use f-string in scripts/version.py --- scripts/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/version.py b/scripts/version.py index b20b5802c..bbbe61a4e 100755 --- a/scripts/version.py +++ b/scripts/version.py @@ -20,7 +20,7 @@ sys.exit(0) VERSION = "" -with open("%s/core.py" % scalDir, encoding="utf-8") as _file: +with open(f"{scalDir}/core.py", encoding="utf-8") as _file: while True: line = _file.readline() if line.startswith("VERSION"):