Merge branch 'indent' into 'master'

ci: Make indentation close to original again

See merge request World/Phosh/squeekboard!511
This commit is contained in:
Guido Günther
2021-12-17 12:03:58 +00:00
2 changed files with 60 additions and 59 deletions

View File

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