-
Notifications
You must be signed in to change notification settings - Fork 0
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
Adopt Black and check conformance in downstream repos #49
Conversation
Pushed some commits to address Dan's review comments. |
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.
Added a fixup to add a test for the exclude
parameter, and fix a small formatting error that revealed.
2179031
to
eb0afff
Compare
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.
All looks good to me now, will merge after after Trevor OK's the fixups
Fixups all look good to me! Only thing that'd be nice before merge is to add that changelog entry, which I'll leave to you @drasmuss. |
Check to ensure that files are black formatted in static checks. Add pre-commit-config.yaml to run Black as a precommit hook. Automatically run black on any Python template rendered by Bones.
Motivation and context:
Black automatically handles a lot of Python style decisions that we've spent time talking about in the past, freeing up our time for more important matters.
The only thing that I wasn't able to do in this PR is auto-format notebooks, though doing so is very close with black-nb. There are only a few minor issues with it, and rather than deal with them now, I chose to defer that to later. See #48 for details.
Interactions with other PRs:
Any other PR that touches Python code will have to be reformatted with Black. It shouldn't be very difficult though, as most of the changes in this PR are either straightforward or can be ignored and re-applied by running
black
again.How has this been tested?
Ran the static tests locally with and without black formatted code to ensure that checks are raised correctly.
How long should this take to review?
Types of changes:
Checklist: