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

Sort JSON output #315

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Sort JSON output #315

merged 1 commit into from
Dec 20, 2024

Conversation

Timmmm
Copy link
Contributor

@Timmmm Timmmm commented Nov 5, 2024

If we're sorting the dictionary anyway we may as well output the JSON sorted.

Also since Python 3.6 we can just use dict() since the insertion order is preserved.

Copy link

codecov bot commented Nov 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.52%. Comparing base (383cbca) to head (aef4cce).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #315      +/-   ##
==========================================
- Coverage   96.53%   96.52%   -0.01%     
==========================================
  Files          10       10              
  Lines         750      749       -1     
==========================================
- Hits          724      723       -1     
  Misses         26       26              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

If we're sorting the dictionary anyway we may as well output the JSON sorted.

Also since Python 3.6 we can just use `dict()` since the insertion order is preserved.
@Timmmm Timmmm force-pushed the user/timh/sort_json branch from 21fd84c to aef4cce Compare December 20, 2024 14:04
@Timmmm
Copy link
Contributor Author

Timmmm commented Dec 20, 2024

@aswaterman @IIITM-Jay please could I get a review of this?

Copy link
Member

@aswaterman aswaterman left a comment

Choose a reason for hiding this comment

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

OK by me.

@aswaterman aswaterman merged commit f4aa35e into riscv:master Dec 20, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants