-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Introduce formatter black #652
Conversation
@tabergma thanks for adding this! I've looked into In case the travis build fails due to not matching black formatting, is there a way to either a) automatically execute black formatting, or b) notify the user what they need to do to pass the checks? |
👍 |
You cannot fully automate Regarding you point b: We could add a Pull Request template that contains some check points, such as "added tests", "reformatted files using black (check Readme)", "updated documentation". This way, the user would get a hint on what he needs to do and could check the Readme for a more detailed description. |
👍 |
What "strategy" should we use for the current opened PRs? The build for each of them will be ok, but after a merge on master, the build will fail. Should we "force" a rebase on master now, or should we file a follow-up PR later 🤔 |
I would suggest merging (not rebase) the master into the PR branches. Depending on the size of the PR there might be merge conflicts to solve. But they should be fairly easy to solve. Afterwards, reformat the code again in the PR branch and you should be good to go. |
closes #644
black
.black