Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/e2e/adcp_schema_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ async def _download_schema_index(self) -> dict[str, Any]:
# Save to cache
with open(cache_path, "w") as f:
json.dump(index_data, f, indent=2)
f.write("\n") # Add trailing newline for pre-commit compatibility

# Save new metadata
metadata = {
Expand All @@ -183,6 +184,7 @@ async def _download_schema_index(self) -> dict[str, Any]:
}
with open(meta_path, "w") as f:
json.dump(metadata, f, indent=2)
f.write("\n") # Add trailing newline for pre-commit compatibility

return index_data

Expand Down Expand Up @@ -256,6 +258,7 @@ async def _download_schema(self, schema_ref: str) -> dict[str, Any]:
# Save to cache
with open(cache_path, "w") as f:
json.dump(schema_data, f, indent=2)
f.write("\n") # Add trailing newline for pre-commit compatibility

# Save new metadata
metadata = {
Expand All @@ -266,6 +269,7 @@ async def _download_schema(self, schema_ref: str) -> dict[str, Any]:
}
with open(meta_path, "w") as f:
json.dump(metadata, f, indent=2)
f.write("\n") # Add trailing newline for pre-commit compatibility

return schema_data

Expand Down