Skip to content

Commit

Permalink
ENH: sort keys in Taplo config comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 9, 2023
1 parent 25b7525 commit 1a081d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repoma/check_dev_files/toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _update_taplo_config() -> None:
del expected["exclude"]
with open(CONFIG_PATH.taplo) as f:
existing = tomlkit.load(f)
expected_str = tomlkit.dumps(expected)
expected_str = tomlkit.dumps(expected, sort_keys=True)
existing_str = tomlkit.dumps(existing)
if existing_str.strip() != expected_str.strip():
with open(CONFIG_PATH.taplo, "w") as stream:
Expand Down

0 comments on commit 1a081d6

Please sign in to comment.