Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use JSON parser in arb_reformatter.py #1244

Merged
merged 9 commits into from
Nov 2, 2023
Merged

Use JSON parser in arb_reformatter.py #1244

merged 9 commits into from
Nov 2, 2023

Conversation

emlun
Copy link
Member

@emlun emlun commented Nov 2, 2023

Update the reformatting method to parse both dictionaries as JSON, recursively re-order the keys of the target to match that of the source, and then insert newlines where they appear in the source. Keys missing from the source are deleted from the target.

@emlun emlun requested a review from AdamVe November 2, 2023 13:09
Copy link
Member

@AdamVe AdamVe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@emlun emlun force-pushed the arb-formatter-json branch from dc8f314 to f2e5450 Compare November 2, 2023 14:40
@emlun emlun force-pushed the arb-formatter-json branch from f2e5450 to 844f2f8 Compare November 2, 2023 15:00
@emlun emlun merged commit b4fe0c3 into main Nov 2, 2023
10 checks passed
@emlun emlun deleted the arb-formatter-json branch November 2, 2023 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants