From e98fa093698f5119e827c7f011c4d5db488669b6 Mon Sep 17 00:00:00 2001 From: KRiedmiller Date: Mon, 7 Aug 2023 17:17:47 +0200 Subject: [PATCH] style: black --- src/kimmdy/misc_helper.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/kimmdy/misc_helper.py b/src/kimmdy/misc_helper.py index 5b75c0e7..394c6b89 100644 --- a/src/kimmdy/misc_helper.py +++ b/src/kimmdy/misc_helper.py @@ -116,9 +116,11 @@ def _build_examples(args: argparse.Namespace): target_is_directory=True, ) # fix scheme path - yml = dstpath / 'kimmdy.yml' + yml = dstpath / "kimmdy.yml" if yml.exists(): - scheme_p = Path("..") / ".." / "src" / "kimmdy" / "kimmdy-yaml-schema.json" + scheme_p = ( + Path("..") / ".." / "src" / "kimmdy" / "kimmdy-yaml-schema.json" + ) first_line = f"# yaml-language-server: $schema={scheme_p}\n" with open(yml, "r+") as f: lines = f.readlines() @@ -129,7 +131,7 @@ def _build_examples(args: argparse.Namespace): f.seek(0) f.writelines(lines) f.truncate() - + print("done") except FileExistsError as e: raise FileExistsError(