chore: format yaml internally (#24520)

Uses https://github.com/g-plane/pretty_yaml
This commit is contained in:
David Sherret 2024-07-10 23:59:57 -04:00 committed by GitHub
parent e8057bc102
commit a5f8bfdbfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 13 additions and 9 deletions

View File

@ -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"
]
}

View File

@ -8,9 +8,9 @@ on:
default: 'patch'
type: choice
options:
- patch
- minor
- major
- patch
- minor
- major
required: true
jobs:

View File

@ -8,9 +8,9 @@ on:
default: 'patch'
type: choice
options:
- patch
- minor
- major
- patch
- minor
- major
required: true
jobs:

View File

@ -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: |

View File

@ -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,
],