Skip to content

Commit

Permalink
make sure codegen doesn't cause spurious diffs for no reason
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinb committed Nov 20, 2024
1 parent 6813227 commit 00816cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion llama_stack/scripts/distro_codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def generate_dependencies_file():

deps_file = REPO_ROOT / "distributions" / "dependencies.json"
with open(deps_file, "w") as f:
json.dump(distribution_deps, f, indent=2)
f.write(json.dumps(distribution_deps, indent=2) + "\n")


def main():
Expand Down
2 changes: 1 addition & 1 deletion llama_stack/templates/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ def save_distribution(self, yaml_output_dir: Path, doc_output_dir: Path) -> None

docs = self.generate_markdown_docs()
with open(doc_output_dir / f"{self.name}.md", "w") as f:
f.write(docs)
f.write(docs if docs.endswith("\n") else docs + "\n")

0 comments on commit 00816cc

Please sign in to comment.