def main()

in hack/edit-keps.py [0:0]


def main(keps_dir, force_rewrite):
    yaml = setup_yaml()
    for f in glob.glob(f'{keps_dir}/**/kep.yaml', recursive=True):
        if path.basename(f) not in EXCLUDED_FILES:
            try:
                print(f'processing file: {f}')
                edit_kep(yaml, f, force_rewrite)
            except Exception as e:  # pylint: disable=broad-except
                print(f'ERROR: could not edit {f}: {e}')