Skip to content

Commit efff8c4

Browse files
committed
Fix spacing in package_lock.bzl files
1 parent 6f40e9e commit efff8c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/script.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import tempfile
99
import zipfile
1010
from pathlib import Path
11-
from textwrap import dedent
11+
from textwrap import dedent, indent
1212

1313
import boto3
1414
import re
@@ -63,16 +63,16 @@ def gen_bzl_config(tag: str, dist: Path) -> None:
6363

6464
packages_lock_name = "packages_" + tag.replace(".", "_")
6565
packages_lock_name_upper = packages_lock_name.upper()
66-
packages_lock_json = json.dumps(imports_to_test, indent=3, sort_keys=True)
66+
packages_lock_json = indent(json.dumps(imports_to_test, indent=3, sort_keys=True), " "*12).strip()
6767
Path(dist / (packages_lock_name + ".bzl")).write_text(
6868
dedent(
69-
f"""
69+
f"""\
7070
# This file is automatically generated by the Pyodide build script repo
7171
# (https://github.com/cloudflare/pyodide-build-scripts) and should not be manually modified.
7272
7373
{packages_lock_name_upper} = {packages_lock_json}
7474
"""
75-
).strip()
75+
).strip() + "\n"
7676
)
7777

7878

0 commit comments

Comments
 (0)