Skip to content

Commit

Permalink
Add tidying script and apply to YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminPelletier committed Jan 14, 2021
1 parent 5e8d682 commit 61e12c3
Show file tree
Hide file tree
Showing 3 changed files with 576 additions and 534 deletions.
1 change: 1 addition & 0 deletions tools/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruamel.yaml=0.16.12
8 changes: 8 additions & 0 deletions tools/tidy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from ruamel.yaml import YAML

yaml = YAML()
with open('../utm.yaml', 'r') as f:
api = yaml.load(f)

with open('../utm.yaml', 'w') as f:
yaml.dump(api, f)
Loading

0 comments on commit 61e12c3

Please sign in to comment.