Skip to content
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

Add github action to run black on PRs and pushes to master #9

Merged
merged 1 commit into from
Feb 19, 2021

Conversation

ipl31
Copy link
Contributor

@ipl31 ipl31 commented Feb 19, 2021

This change set adds a github action which will run black in check mode against all pull requests and pushes to master. I have another PR I will open in a moment which blackifys the init.py file. Everything else was good. With this action in place PRs will report status on the workflow and it can be used as a merge gate.

To see it in action:
I updated master in my fork with the workflow. This is what a PR looks like when it passes:

ipl31#2 See the "show all checks" link.

Here are the details on the workflow execution: https://github.com/ipl31/fmpsdk/pull/2/checks?check_run_id=1933517932

Here is an example of a previous workflow on my fork that failed before I fixed the black errors:
https://github.com/ipl31/fmpsdk/runs/1933483318

@daxm daxm merged commit e174c35 into daxm:master Feb 19, 2021
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.

None yet

2 participants