summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-07-10 23:59:57 -0400
committerGitHub <noreply@github.com>2024-07-10 23:59:57 -0400
commita5f8bfdbfb35a9750b26cbffb488f25d15950d40 (patch)
tree83bb1465cd8e5d627a71efb21ad16552d9d11fa7
parente8057bc10266f7f0d097d08bf3827ff055c826a4 (diff)
chore: format yaml internally (#24520)
Uses https://github.com/g-plane/pretty_yaml
-rw-r--r--.dprint.json6
-rw-r--r--.github/workflows/start_release.yml6
-rw-r--r--.github/workflows/version_bump.yml6
-rw-r--r--.github/workflows/wpt_epoch.yml2
-rwxr-xr-xtools/format.js2
5 files changed, 13 insertions, 9 deletions
diff --git a/.dprint.json b/.dprint.json
index 475e4b141..3c56d3e42 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 35d5ae5e7..392551afb 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 d16ccadcd..733abbb02 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 4dbb8a997..cfb06a318 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 2f4d734d7..e7b8f0d5f 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,
],