diff options
author | Ryan <fauxpark@gmail.com> | 2023-05-20 22:15:05 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-20 22:15:05 +1000 |
commit | 6d90fa2300b463f5cc6920022a445d5ed217124c (patch) | |
tree | 2b0ae6329af789e81ba5d7313b752e5e828493e0 /lib/python/qmk/cli/new | |
parent | 102c42b14bc79a178d16ae5217d739490a312ea4 (diff) |
`qmk format-json`: Expose full key path and respect `sort_keys` (#20836)
Diffstat (limited to 'lib/python/qmk/cli/new')
-rw-r--r-- | lib/python/qmk/cli/new/keyboard.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/new/keyboard.py b/lib/python/qmk/cli/new/keyboard.py index cdd3919168..ce956d0ce1 100644 --- a/lib/python/qmk/cli/new/keyboard.py +++ b/lib/python/qmk/cli/new/keyboard.py @@ -102,7 +102,7 @@ def augment_community_info(src, dest): item["matrix"] = [int(item["y"]), int(item["x"])] # finally write out the updated info.json - dest.write_text(json.dumps(info, cls=InfoJSONEncoder)) + dest.write_text(json.dumps(info, cls=InfoJSONEncoder, sort_keys=True)) def _question(*args, **kwargs): |