-
-
Notifications
You must be signed in to change notification settings - Fork 9
[Chore] - Deprecate the "default" colorscale name and list_all_colorscale_names() #262
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
[Chore] - Deprecate the "default" colorscale name and list_all_colorscale_names() #262
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for submitting your first pull request with us! 🎉
Our response times may vary, but we'll get back to you as soon as we can!
To help us help you, please make sure you have ticked all the boxes in the pull request template.
Welcome aboard! 🚀
|
@sstephanyy Congrats (and thank you!) for your first contribution!! This is pretty much exactly how I would've approached it so I consider it ready to merge, but I will take a better look at it tomorrow 👍 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #262 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 13 13
Lines 528 532 +4
Branches 69 70 +1
=========================================
+ Hits 528 532 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@sstephanyy there was an issue with how the documentation-links job was defined. Sorry about that. btw, I also noticed that the tests were not passing locally but I fixed the issue in this commit: cb105e6 |
|
There seem to be some other related issues with the Codacy and Codecov integrations... Sorry about this as well. I'll try to take a look tomorrow |
tpvasconcelos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! 🚀🚀🚀
I had to tweak the tests a bit here because they were failing, but the remaining changes were all cosmetic.
|
The only thing left for you to do is to update the changelog with a small entry, like:
|
Yes, you can add it as a new item under the latest |
Done ✔️ |
|
@sstephanyy FYI: f464009 😉 |
Thank you so much haha! I’m really glad to have contributed to the project. 😉 |
tpvasconcelos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀🚀
Please let me know if there's anything else I can help with. |
|
Thanks for your help @sstephanyy ! 🚀 Your contribution has now been merged to the Btw, since you voiced some interested the other day, I think this could be a nice issue to try and tackle (when you have the time, no rush!) --> #252 |
Description
Deprecation of "default" colorscale: Updated
ridgeplot._ridgeplot::ridgeplot()to raise a deprecation warning when the "default" value is passed to thecolorscaleargument. The warning informs users that this value is deprecated and directs them topx.colors.named_colorscales()in Plotly Express to view valid colorscale names. More details can be found in the Plotly documentation.Update list_all_colorscale_names(): Added a deprecation warning to
list_all_colorscale_names(), advising users to usepx.colors.named_colorscales()from Plotly Express instead. The docstring has also been updated with .. deprecated:: 0.1.31and links to the relevant documentation.Tests: Added tests to verify the deprecation warnings in both functions.
Related issues
Closes #256
Question
I noticed there's already a 'Deprecations' section in
docs/reference/changelog.mdfor notifying users about deprecation warnings. Should I add a note there that thelist_all_colorscale_names()function will be removed soon and that "deafult" will be deprecated?PR check list
docs/api/internal/.docs/api/index.rst.versionadded,versionchanged, ordeprecateddirectives to docstrings.MAJOR.MINOR.PATCH(e.g., if the current version is0.2.3, the next release will be0.3.0).docs/reference/changelog.md.📚 Documentation preview 📚: https://ridgeplot--262.org.readthedocs.build/en/262/