-
Notifications
You must be signed in to change notification settings - Fork 571
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
Import constants
module instead of importing constant values directly
#1172
Comments
Hi, is this issue still available to work on? If yes, I would like to give it a shot. I have been eager to contribute to HuggingFace, and this would be a nice start. |
Hi @dankornas, thanks for proposing to contribute on this one! It is open for contributions yes :) Maybe as a start you can work on a first PR that makes the change only in a few modules (instead of the entire codebase at once) so that we can iterate on it. What do you think? If you have any questions, please let me know! Thanks in advance 🤗 |
Hey @Wauplin, sounds good to me! Based on the comments that you provided in your first comment, I think I have a pretty good idea of what we want to do here. So, I will start playing around with this whenever I can and once I have something or if I have any questions, I'll be sure to get back to you :) |
Good, sounds like we have a plan then :) Feel free to ping me whenever! |
Hey @Wauplin , the task was completed to update constants in |
I think it's best to definitively complete the first PR first, which should happen very soon! |
* Update `constants` import to use module-level access (#1172) * Update constants import to use module-level access #1172 #2453 * Update constants imports with backward compatibility #1172, #2453 * Update fastai_utils.py * Update hf_api.py * remove unecessary changes --------- Co-authored-by: Lucain Pouget <lucainp@gmail.com>
Hi @WizKnight , I just merged #2453! Thanks for the contributions 🤗 Would you like to open a follow-up PR to address all other constants occurrences? :) |
Hi @WizKnight, I'm very sorry, I closed #2453 too quickly. My fault on that. What I meant in #2453 (comment) is that we should keep all the imports for backward compatibility BUT we should still use |
Okay, I'll open a new PR and will keep this with backward compatibility Right?? |
And use all other constants as |
Alright, I'm on it! |
* Update constants imports with module level access and backward compatibility #1172 * Use constants.ENDPOINT and fix patch * remove useless import --------- Co-authored-by: Lucain Pouget <lucainp@gmail.com> Co-authored-by: Lucain <lucain@huggingface.co>
Closing this issue as completed by #2489. Thanks @WizKnight! |
Best described by @albertvillanova in huggingface/datasets#5196 (comment) and huggingface/datasets#5196 (comment).
Basically, change from
to
everywhere.
The text was updated successfully, but these errors were encountered: