[FEATURE] Beautify meta .json files #1180
Comments
|
I would like to give this a shot. Can you please tell how to get started with solving this issue. |
|
Hub/hub/core/storage/cachable.py Line 30 in b77952c |
|
the follwing meta files can be beautified:
after implementing beautify code, it would be nice if you could add a test for this. this test should be in a new file: |
|
I was looking into this and found some good solutions. the one I liked was to use |
|
@SatYu26 sure, indent=4 and sort_keys=True should do the trick. |
|
Hey @SatYu26, thanks for the suggestions! Looking forward to a PR |
|
how should I check if the changes I have made are correct or not? And I have never written tests before if anyone can help me, it would be better. |


Is your feature request related to a problem?
All of our json files(currently tensor_meta.json and dataset_meta.json) use json.dumps which means the json output is all on a single line. This can make it harder for a user to read them, especially when we start adding more keys and nested structures to these json files.
If your feature will improve
HUBWe need to find a way to (without an external dependency if possible) beautify these json files.
Difficulty: Medium-easy
The text was updated successfully, but these errors were encountered: