-
Notifications
You must be signed in to change notification settings - Fork 44
Using black for code style #14
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
Comments
Agree. |
haven't tried it but worth a shot? |
@rth 👍 |
Just two days ago I put black in my list of discussions to bring up for
scikit-learn. But we can start here and do our experiments here first and
see how it goes.
…On Wed., Jun. 5, 2019, 05:52 liupeng, ***@***.***> wrote:
@rth <https://github.com/rth> 👍
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#14?email_source=notifications&email_token=AAMWG6GA2GKSYNPIBIANHL3PY4L5HA5CNFSM4HS6FJFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW6LVSA#issuecomment-498907848>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMWG6ENJ3STAGFF73HKCDLPY4L5HANCNFSM4HS6FJFA>
.
|
Do you have experience with it, Adrin?
|
I don't, but I'd be happy to figure out how it should be done.
It's just that in a few occasions in PyData meetups when talking about
sklearn and contributions,
people would be really happy if we had black instead of manually enforcing
pep8. I first thought
that wouldn't work for a large old-ish project, but then I saw some large
projects have already
adopted it, so I'm personally convinced it may be a good idea.
…On Wed, Jun 5, 2019 at 9:47 AM Joel Nothman ***@***.***> wrote:
Do you have experience with it, Adrin?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#14?email_source=notifications&email_token=AAMWG6HRYCDQHP77FSDO3F3PY5VSZA5CNFSM4HS6FJFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW64NPQ#issuecomment-498976446>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAMWG6HRZADWXQBX4UDPWT3PY5VSZANCNFSM4HS6FJFA>
.
|
Made the PR in #15 I have used it in a few other projects and it takes some time to get used to (mostly to stop caring about formatting), after which the experience is quite positive. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since this is a fairly new project I would suggest using black (https://github.com/python/black) for code formatting here (and enforcing it for new PRs).
Black is getting fairly mainstream and this could be a way to evaluate it before using in scikit-learn (cf scikit-learn/scikit-learn#11336 (comment) and following discussion).
Any objections?
The text was updated successfully, but these errors were encountered: