diff --git a/docs/autogen_shortcuts.py b/docs/autogen_shortcuts.py index 27eb335..8782876 100755 --- a/docs/autogen_shortcuts.py +++ b/docs/autogen_shortcuts.py @@ -76,14 +76,17 @@ for kb in ipy_bindings: if __name__ == '__main__': here = Path(__file__).parent - dest = here / 'source' / 'config' / 'shortcuts' + dest = here / "source" / "config" / "shortcuts" def sort_key(item): k, v = item shortcut, flt = k return (str(shortcut), str(flt)) - for filters, output_filename in [(single_filter, 'single_filtered'), (multi_filter, 'multi_filtered')]: - with (dest / '{}.csv'.format(output_filename)).open('w') as csv: + for filters, output_filename in [ + (single_filter, "single_filtered"), + (multi_filter, "multi_filtered"), + ]: + with (dest / "{}.csv".format(output_filename)).open("w") as csv: for (shortcut, flt), v in sorted(filters.items(), key=sort_key): - csv.write(':kbd:`{}`\t{}\t{}\n'.format(shortcut, flt, v)) + csv.write(":kbd:`{}`\t{}\t{}\n".format(shortcut, flt, v))