-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #250 from pankona/fmt-yaml
Format YAML with yamlfmt and dprint
- Loading branch information
Showing
7 changed files
with
163 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Lint | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
typo: | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: crate-ci/typos@v1.18.1 | ||
with: | ||
# https://github.com/crate-ci/typos/issues/779#issuecomment-1635761199 | ||
files: | | ||
. | ||
.github | ||
.vscode | ||
format: | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup go to install yamlfmt | ||
uses: actions/setup-go@v5 | ||
- name: Install yamlfmt | ||
run: | | ||
go install github.com/google/yamlfmt/cmd/yamlfmt@v0.10.0 | ||
- uses: dprint/check@v2.2 | ||
with: | ||
dprint-version: 0.45.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"excludes": [], | ||
"exec": { | ||
"commands": [{ | ||
"command": "yamlfmt -in -formatter retain_line_breaks=true", | ||
"exts": ["yaml", "yml"] | ||
}] | ||
}, | ||
"plugins": [ | ||
"https://plugins.dprint.dev/exec-0.4.4.json@c207bf9b9a4ee1f0ecb75c594f774924baf62e8e53a2ce9d873816a408cecbf7" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
peco | ||
typos | ||
dprint | ||
yamlfmt | ||
imagemagick | ||
actionlint | ||
nil | ||
|