Skip to content

RFE: Add "bst fmt" (or similar) to rewrite .bst files to canonical format

Background

This can be useful to keep same style format in all the files in the project

Task description

This is actually done already when running bst track

Possible solutions

We have simply used this in freedesktop-sdk/freedesktop-sdk!626 (merged)

#!/usr/bin/python3

from ruamel.yaml import round_trip_load, round_trip_dump
    
import sys
    
for filename in sys.argv[1:]:
    print(filename)
    with open(filename) as f:
        content = round_trip_load(f)
    
    with open(filename, 'w') as f:
        round_trip_dump(content, f)

Acceptance Criteria

New command is available

Edited by Javier Jardón
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information