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

Add black in pre-commit and also formatted exiting code as per black #374

Merged
merged 1 commit into from
Sep 25, 2019

Conversation

theskumar
Copy link
Member

Why was this change necessary?

To keep the code styling standard for every developer.

How does it address the problem?

Using black to format code, black is added to pre-commit so the code is always formatted before making a commit.

Are there any side effects?

There could be cases that a dev doesn't want a restrictive formatting. I think having a tool to format the code for everyone wins. Readability and code-reviews matter.

Copy link
Contributor

@tucosaurus tucosaurus left a comment

Choose a reason for hiding this comment

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

LGTM. On a new project, black would be nice to use.
I dont like that it formats our migration files as well but I can live with that.

Copy link
Contributor

@CuriousLearner CuriousLearner left a comment

Choose a reason for hiding this comment

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

LGTM 🌮 🎉

@theskumar
Copy link
Member Author

I thought about migration files as well. My thought on it: "Those files get edited by devs and it's okay to format them for readability, machines doesn't care of about formatting anyways".

Copy link
Contributor

@jainmickey jainmickey left a comment

Choose a reason for hiding this comment

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

Looks Good 🙌

@theskumar theskumar merged commit 8b6aa96 into master Sep 25, 2019
@theskumar theskumar deleted the black branch September 25, 2019 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants