Push to hub mixins that do not leverage `git` (#847)
* Propose a non-git mixin
* Fix merge
* Improvements non git mixin (#618)
Add in commit_message + tests
Co-authored-by: Lysandre <lysandre.debut@reseau.eseo.fr>
* Big refactor
* FIX typos in contributing.md
* Remove redefined logger in HfApi.py
* Use upload_folder in both mixins + some docstring
* moved back logger to top of hf_api ><
* space in documentation can be ambiguous
* WIP started deprecation
* deprecate skip lfs file and use Path
* added decorator to deprecate specific arguments + unittests for it
* simplified tests
* proper decorators
* fix docstring
* hubmixin: fixed existing tests + add http one
* unique repo names across tests
* make push_to_hub_keras work + tests
* logs are not overwritten in push_to_hub_keras
* flake8
* refacto push_to_hub from mixin.save_pretrained
* deprecate positional argument in version 0.12
* remove docstring for deprecated skip_lfs_files
* delete old logs when uploading keras model to hub
* remove TODO in tests
* remove useless todo
* Update src/huggingface_hub/hub_mixin.py
* flake8
* remove un-explicit _generate_url helper
* exclude some folders from flake8
* clean pr
* move out tests fixing to other issue
* introduce decorator to deprecate tests
* docstring
* fix pattern in expect_deprecation decorator
* docstring
* remove extras['ml'] integration
* Apply suggestions from code review
Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>
* use expect_deprecation decorator in test
* remove caret in comment
* explicit mocked model
* delete unused and failing tett
* optional path_in_repo for root
* revert back token docstring
* Update src/huggingface_hub/hf_api.py
Co-authored-by: Lysandre Debut <lysandre@huggingface.co>
Co-authored-by: Zachary Mueller <muellerzr@gmail.com>
Co-authored-by: Wauplin <lucainp@gmail.com>
Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>