Skip to content

Workflow for checking pull request formatting#9

Open
SebastianGrans wants to merge 1 commit intora-mtp-ntnu:mainfrom
SebastianGrans:moto_format_checking
Open

Workflow for checking pull request formatting#9
SebastianGrans wants to merge 1 commit intora-mtp-ntnu:mainfrom
SebastianGrans:moto_format_checking

Conversation

@SebastianGrans
Copy link
Contributor

@SebastianGrans SebastianGrans commented Dec 3, 2021

I've created a workflow that is executed on pull requests. I runs black --check on any new or modified python files.

I left some echo statements in the shell script in case debugging is needed in the future.

I've created two dummy pull request on my fork to demonstrate how it works.

https://github.com/SebastianGrans/moto/pulls

@SebastianGrans
Copy link
Contributor Author

check_formatting.sh contains code that was original from this project and is licensed under MIT. While this repo has the Apache 2.0 license.

They seem to be "compatible" based on this discussion and this page.

But I'm no lawyer.

@SebastianGrans SebastianGrans force-pushed the main branch 3 times, most recently from 67ab707 to ae49a66 Compare December 5, 2021 16:19
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.

1 participant