mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 19:46:54 +00:00
Pretty yaml
This commit is contained in:
parent
63142f2d4e
commit
97a00d0324
12 changed files with 271 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
foo: "bar"
|
||||
alist:
|
||||
- 2
|
||||
- 34
|
||||
- 234
|
||||
blah: null
|
||||
3
testing/resources/yaml_files/pretty_formatted_yaml.yaml
Normal file
3
testing/resources/yaml_files/pretty_formatted_yaml.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
alist: [2, 34, 234]
|
||||
blah: null
|
||||
foo: bar
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
!!map {
|
||||
? !!str "array"
|
||||
: !!seq [
|
||||
!!int "2",
|
||||
!!int "34",
|
||||
!!int "234",
|
||||
],
|
||||
? !!str "null_items"
|
||||
: !!null "null",
|
||||
? !!str "object"
|
||||
: !!map {
|
||||
? !!str "inner_object"
|
||||
: !!map {
|
||||
? !!str "attribute"
|
||||
: !!bool "true",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
array:
|
||||
- 2
|
||||
- 34
|
||||
- 234
|
||||
null_items: null
|
||||
object:
|
||||
inner_object:
|
||||
attribute: true
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
"array":
|
||||
- !!int "2"
|
||||
- !!int "34"
|
||||
- !!int "234"
|
||||
"null_items": !!null "null"
|
||||
"object":
|
||||
"inner_object":
|
||||
"attribute": !!bool "true"
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
array: [2, 34, 234]
|
||||
null_items: null
|
||||
object:
|
||||
inner_object: {attribute: true}
|
||||
Loading…
Add table
Add a link
Reference in a new issue