Skip to content

Commit

Permalink
style: black
Browse files Browse the repository at this point in the history
  • Loading branch information
KRiedmiller committed Aug 7, 2023
1 parent 5076ca4 commit e98fa09
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/kimmdy/misc_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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(
Expand Down

0 comments on commit e98fa09

Please sign in to comment.