ENH Add update metadata to repocard (#844)
* add `metadata_update` function
* add tests
* add docstring
* Apply suggestions from code review
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
* refactore `_update_metadata_model_index`
* Apply suggestions from code review
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
* fix style and imports
* switch to deepcopy everywhere
* load repo in repocard test into tmp folder
* simplify results and metrics checks when updating metadata
* run black
* Apply suggestions from code review
Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>
* fix pyyaml version to work with `sort_keys` kwarg
* don't allow empty commits if file hasn't changed
* switch order of updates to first check model-index for easier readbility
* expose repocard functions through `__init__`
* fix init
* make style & quality
* revert to for-loop
* Apply suggestions from code review
Co-authored-by: Julien Chaumond <julien@huggingface.co>
Co-authored-by: Lysandre Debut <lysandre.debut@reseau.eseo.fr>
* post suggestion fixes
* add example
* add type to list
Co-authored-by: Adrin Jalali <adrin.jalali@gmail.com>
Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>
Co-authored-by: Julien Chaumond <julien@huggingface.co>
Co-authored-by: Lysandre Debut <lysandre.debut@reseau.eseo.fr>