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

MNT enable preview on black #849

Merged
merged 4 commits into from Apr 26, 2022
Merged

MNT enable preview on black #849

merged 4 commits into from Apr 26, 2022

Conversation

adrinjalali
Copy link
Contributor

This PR adds --preview to black which handles strings much nicer.

cc @LysandreJik @osanseviero

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Apr 21, 2022

The documentation is not available anymore as the PR was closed or merged.

@osanseviero
Copy link
Member

No strong opinion from my side, but I usually like cross-library consistency if possible, but we already diverged in line length if I recall correctly (we use 88 here (default) vs transformers which uses 119), so really no strong opinion.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

I think this is fine. The fact that the same black version is used across all our libraries and that make style in all repositories results in correct styling across repositories is what's important in my opinion.

No problem for me to have a specific configuration here.

Copy link
Member

@osanseviero osanseviero left a comment

Choose a reason for hiding this comment

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

LG! Thanks!

@osanseviero osanseviero merged commit 04c38fc into huggingface:main Apr 26, 2022
@adrinjalali adrinjalali deleted the black/preview branch April 26, 2022 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants