ci: Make indentation close to original again
This commit is contained in:
@ -1,15 +1,15 @@
|
|||||||
image: debian:bullseye
|
image: debian:bullseye
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get -y update
|
- apt-get -y update
|
||||||
- apt-get -y install wget ca-certificates gnupg
|
- apt-get -y install wget ca-certificates gnupg
|
||||||
- echo "deb [trusted=yes] http://ci.puri.sm/ bullseyeci main" > /etc/apt/sources.list.d/ci.list
|
- echo "deb [trusted=yes] http://ci.puri.sm/ bullseyeci main" > /etc/apt/sources.list.d/ci.list
|
||||||
- wget -O- https://ci.puri.sm/ci-repo.key | apt-key add -
|
- wget -O- https://ci.puri.sm/ci-repo.key | apt-key add -
|
||||||
- apt-get -y update
|
- apt-get -y update
|
||||||
|
|
||||||
build_docs:
|
build_docs:
|
||||||
stage: build
|
stage: build
|
||||||
|
|||||||
@ -25,6 +25,7 @@ def dump(yaml, yml):
|
|||||||
with open(path) as f:
|
with open(path) as f:
|
||||||
contents = f.read()
|
contents = f.read()
|
||||||
yaml = YAML()
|
yaml = YAML()
|
||||||
|
yaml.indent(offset=2, sequence=4)
|
||||||
yml = yaml.load(contents)
|
yml = yaml.load(contents)
|
||||||
formatted = dump(yaml, yml)
|
formatted = dump(yaml, yml)
|
||||||
well_formatted = formatted == contents
|
well_formatted = formatted == contents
|
||||||
|
|||||||
Reference in New Issue
Block a user