You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to make sure that a consistent order is ensured?
As a workaround I currently add a global exclude: '^codemeta.json$' to my hook, which is not nice because it prevents my JSON linter to format the JSON.
Expected behavior
On the same input files exactly the same output file should be generated.
The text was updated successfully, but these errors were encountered:
Thanks for the report, I agree that the output should be deterministic. It already is in the ordering of fields in a map but not yet in the ordering of objects in a sequence, I'll implement a solution for it.
I'm using codemetapy as a linter with
pre-commit
and noticed that for some reason it fails sometimes because thecodemeta.json
file changed.In my case, this is caused by my classifiers:
Then codemetapy will randomly orders them, sometimes resulting in:
and sometimes in:
Would it be possible to make sure that a consistent order is ensured?
As a workaround I currently add a global
exclude: '^codemeta.json$'
to my hook, which is not nice because it prevents my JSON linter to format the JSON.Expected behavior
On the same input files exactly the same output file should be generated.
The text was updated successfully, but these errors were encountered: