Skip to content
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

Additional pseudo-random color fakes #1904

Merged
merged 5 commits into from
Sep 8, 2023

Conversation

fdemmer
Copy link
Contributor

@fdemmer fdemmer commented Sep 4, 2023

What does this change

Add color_rgb, color_rgb_float, color_hsv and color_hsl fakes

What was wrong

Pseudo-random colors were only available as strings.

How this fixes it

Additional fakes provide tuples of int/float.

Fixes #1903

@fdemmer fdemmer changed the title Fix/master/additional color fakes Additional pseudo-random color fakes Sep 4, 2023
Copy link
Collaborator

@fcurella fcurella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Could you also run make lint to apply our formatting?

faker/providers/color/color.py Outdated Show resolved Hide resolved
@fdemmer
Copy link
Contributor Author

fdemmer commented Sep 7, 2023

Thank you! Could you also run make lint to apply our formatting?

I did, but it did not find any issues; I suspect there was another issue with the pipeline before 🤷

Copy link
Collaborator

@fcurella fcurella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🌈

@fcurella fcurella merged commit 1355316 into joke2k:master Sep 8, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RGB/HSV/HSL color tuples from color provider
2 participants