-
Notifications
You must be signed in to change notification settings - Fork 35
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
Suggest using black formatter on the code #113
Comments
Thanks @iserko. @joshtemple and I have Black enabled on save on our machines. How does this typically work with external contributors? Is it just that we tell them that is the formatting that we insist on, or do we actually have something on Github that amends the code post-commit? |
@DylanBaker usually the CI runs black and you provide it From the docs:
|
Black is an opinionated code formatter for Python projects
It's use was accepted by the Django framework 5 months ago ... I like their foreword :)
The gist of it is ... you let black deal with any formatting questions and no arguments about which comma or new line should go where or when.
As for why you would want this ... when you have external contributors with various different styles, this makes the conversation more on point about what the code is supposed to do and not how it looks.
The text was updated successfully, but these errors were encountered: