From a5f8bfdbfb35a9750b26cbffb488f25d15950d40 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 10 Jul 2024 23:59:57 -0400 Subject: [PATCH] chore: format yaml internally (#24520) Uses https://github.com/g-plane/pretty_yaml --- .dprint.json | 6 +++++- .github/workflows/start_release.yml | 6 +++--- .github/workflows/version_bump.yml | 6 +++--- .github/workflows/wpt_epoch.yml | 2 +- tools/format.js | 2 +- 5 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.dprint.json b/.dprint.json index 475e4b141a..3c56d3e429 100644 --- a/.dprint.json +++ b/.dprint.json @@ -8,6 +8,9 @@ "json": { "deno": true }, + "yaml": { + "quotes": "preferSingle" + }, "exec": { "commands": [{ "command": "rustfmt --config imports_granularity=item", @@ -64,6 +67,7 @@ "https://plugins.dprint.dev/json-0.19.3.wasm", "https://plugins.dprint.dev/markdown-0.17.1.wasm", "https://plugins.dprint.dev/toml-0.6.2.wasm", - "https://plugins.dprint.dev/exec-0.4.4.json@c207bf9b9a4ee1f0ecb75c594f774924baf62e8e53a2ce9d873816a408cecbf7" + "https://plugins.dprint.dev/exec-0.4.4.json@c207bf9b9a4ee1f0ecb75c594f774924baf62e8e53a2ce9d873816a408cecbf7", + "https://plugins.dprint.dev/g-plane/pretty_yaml-v0.3.0.wasm" ] } diff --git a/.github/workflows/start_release.yml b/.github/workflows/start_release.yml index 35d5ae5e70..392551afbe 100644 --- a/.github/workflows/start_release.yml +++ b/.github/workflows/start_release.yml @@ -8,9 +8,9 @@ on: default: 'patch' type: choice options: - - patch - - minor - - major + - patch + - minor + - major required: true jobs: diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index d16ccadcd2..733abbb024 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -8,9 +8,9 @@ on: default: 'patch' type: choice options: - - patch - - minor - - major + - patch + - minor + - major required: true jobs: diff --git a/.github/workflows/wpt_epoch.yml b/.github/workflows/wpt_epoch.yml index 4dbb8a997e..cfb06a3187 100644 --- a/.github/workflows/wpt_epoch.yml +++ b/.github/workflows/wpt_epoch.yml @@ -37,7 +37,7 @@ jobs: - name: Install Python uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: '3.11' - name: Log versions run: | diff --git a/tools/format.js b/tools/format.js index 2f4d734d79..e7b8f0d5f8 100755 --- a/tools/format.js +++ b/tools/format.js @@ -9,7 +9,7 @@ const cmd = new Deno.Command("deno", { "run", "-A", "--no-config", - "npm:dprint@0.45.1", + "npm:dprint@0.47.2", subcommand, "--config=" + configFile, ],