Skip to content

Commit

Permalink
sort keys when writing filedb; fix #54
Browse files Browse the repository at this point in the history
  • Loading branch information
jhidding committed Aug 12, 2024
1 parent e416e10 commit 484a830
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion entangled/filedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def write(self):
"source": list(map(str, self._source)),
"target": list(map(str, self._target)),
}
json.dump(raw, open(FileDB.path(), "w"), indent=2)
json.dump(raw, open(FileDB.path(), "w"), indent=2, sort_keys=True)

def changed(self) -> list[Path]:
"""List all target files that have changed w.r.t. the database."""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "entangled-cli"
version = "2.1.1"
version = "2.1.2"
description = "Literate Programming toolbox"
repository = "https://github.com/entangled/entangled.py"
homepage = "https://entangled.github.io/"
Expand Down

0 comments on commit 484a830

Please sign in to comment.