diff --git a/tests/e2e/adcp_schema_validator.py b/tests/e2e/adcp_schema_validator.py index 2b8a4f3b4..73cebde90 100644 --- a/tests/e2e/adcp_schema_validator.py +++ b/tests/e2e/adcp_schema_validator.py @@ -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 = { @@ -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 @@ -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 = { @@ -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