Skip to content

Commit fd8c70c

Browse files
committed
Add YAML formatting
1 parent 62d848a commit fd8c70c

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ repos:
5858
- id: file-contents-sorter
5959
files: spelling_private_dict\.txt$
6060
- id: trailing-whitespace
61+
- repo: https://github.com/google/yamlfmt
62+
rev: v0.13.0
63+
hooks:
64+
- id: yamlfmt
6165
- repo: local
6266
hooks:
6367
- id: actionlint

.yamlfmt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
formatter:
2+
include_document_start: true
3+
retain_line_breaks_single: true
4+
trim_trailing_whitespace: true
5+
end_of_file_newline: true

codecov.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
coverage:
23
status:
34
patch:

readthedocs.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
version: 2
23

34
build:
@@ -7,10 +8,10 @@ build:
78

89
python:
910
install:
10-
- method: pip
11-
path: .
12-
extra_requirements:
13-
- dev
11+
- method: pip
12+
path: .
13+
extra_requirements:
14+
- dev
1415

1516
sphinx:
1617
builder: html

0 commit comments

Comments
 (0)