Skip to content

Use Black for code formatting #186

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

Merged
merged 1 commit into from
Jun 14, 2018
Merged

Use Black for code formatting #186

merged 1 commit into from
Jun 14, 2018

Conversation

leouieda
Copy link
Member

Following PEP8 is a bit annoying and requires a lot of hand formatting.
Black automatically formats code following PEP8 with few exceptions.
Most notably the line length is 88 instead of 80, which is actually a
lot better.

Use black to format all our code and adjust the CI configurations to
match.

Removed the pep8 and lint targets from the Makefile (only check
exists now since black is very fast).
Introduces the format target to run black on the entire code.
Now we don't need to check for PEP8, just run make format and
everything will be fine.
We run the checks on the CI to make sure black was run on the code.

Following PEP8 is a bit annoying and requires a lot of hand formatting.
Black automatically formats code following PEP8 with few exceptions.
Most notably the line length is 88 instead of 80, which is actually a
lot better.

Use `black` to format all our code and adjust the CI configurations to
match.

Removed the `pep8` and `lint` targets from the `Makefile` (only `check`
exists now since black is very fast).
Introduces the `format` target to run black on the entire code.
Now we don't need to check for PEP8, just run `make format` and
everything will be fine.
We run the checks on the CI to make sure black was run on the code.
@leouieda
Copy link
Member Author

@seisman just a heads-up on the changes in PR. It's not a big change and I hope it'll make things easier in the long run.

@leouieda leouieda merged commit edcfefb into master Jun 14, 2018
@leouieda leouieda deleted the black branch June 14, 2018 22:43
@weiji14 weiji14 mentioned this pull request May 10, 2022
6 tasks
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.

1 participant