-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Github Actions: autoformat with black #307
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #307 +/- ##
=======================================
Coverage 89.56% 89.56%
=======================================
Files 29 29
Lines 3047 3047
=======================================
Hits 2729 2729
Misses 318 318
Continue to review full report at Codecov.
|
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.
Nice job on getting black
to work! It looks like the Github Action you linked in psf's repo can be used as a third-party action, at least from a glance at the Github Actions section of the repo's readme. That could it more concise and easy to configure and less redundant. Would you be able to try that out?
Also, if you ever want to look up other actions you can check out the Github Marketplace!
.github/workflows/build.yml
Outdated
# taken from https://github.com/psf/black/actions/runs/17913292/workflow | ||
pipenv run black aguaclara | ||
git config --global user.name 'autoblack' | ||
git config --global user.email '[email protected]' |
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.
I think you can avoid using a personal account with a bot account like in the docs workflow. But hopefully that isn't necessary with a pre-packaged action for using black
!
#295 Enforce code style with flake8 and black
Created issue #308: Fix errors and warnings from flake8 and add to workflow