-
Notifications
You must be signed in to change notification settings - Fork 96
Fix #201: Reformat source code with black #202
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
Fix #201: Reformat source code with black #202
Conversation
Ahh, the Travis job fails due to "flake8 issues". What should we do with that target? I guess, we should replace it with some "black magic"? 😄 |
Actually, seems we don't need "black magic", it can be solved with this addition in [flake8]
max-line-length = 88
exclude =
.env,
.eggs,
.tox,
.git,
__pycache__,
build,
dist |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except that CHANGELOG is missing
* Add `pyproject.toml` containing black configuration * Add batch image in `README.rst` * Reformat source code with `black`
Use max-line-length of 88 (default for black)
f37e9a1
to
437bcd2
Compare
@scls19fr Right, sorry. I've added it in commit 1dc8f9c. |
Another question: Should we finish and merge pr #138 first before merging this? I've found an optimized version and posted it in #138 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
I'm fine with either one. 😉 Actually, I was also thinking about the other open pull requests and if we make live of our contributors a bit more difficult. On the other side, some of them are quite old and need to be reviewed (closed, delegated, etc) anyway. |
I guess if everyone will run black there should be no conflicts :) |
This PR contains the following changes:
pyproject.toml
containing black configurationREADME.rst
black
(version 19.3b0)Keep in mind,
black
reformats the code quite drastically. That means, all open pull requests will fail to merge. Maybe we should finish and merge pr #138?You will notice, due to #200, the "Check" tab contains now two checks: one for Travis and another one with the GitHub Action for Black. Currently, the black formatting has zero diffs. 👍