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

Automatically run pre-commit in GitHub workflow for pushes and pull requests #60

Merged
merged 6 commits into from
Jun 14, 2023

Conversation

manics
Copy link
Member

@manics manics commented May 18, 2022

I've commented out the markdownlint and cfn-python-lint hooks since they require fixes (the other hooks support automatic formatting), and I'm having trouble installing markdownlint due to the Ruby requirements- is using prettier an option?

I've replaced markdownlint with prettier. This PR should only contain formatting changes.

I've commented out the pre-commit commit config that requires further work, either in terms of additional dependencies (#77) or minor code refactoring (flake8 fixes), I'll deal with these in a future PR.

Closes #57


Declaration : By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@manics manics requested a review from awskaran May 18, 2022 10:52
@manics
Copy link
Member Author

manics commented May 18, 2022

You can see the full list of failures (before any fixes, and including the commented out hooks) from a previous run https://github.com/HicResearch/TREEHOOSE/runs/6487622324?check_suite_focus=true

@manics manics force-pushed the github-precommit branch 3 times, most recently from 5800a9c to dcbdbb1 Compare May 25, 2022 14:13
@drchriscole
Copy link
Member

You'll need to explain this a bit more to me. I see there's four failed checks. Is this what you're trying to fix here or something else?

@AaronJackson
Copy link
Member

@drchriscole mostly looks a bit WIP to me but waiting for a review from karan. The pre-commit action failed due to a linting issue with the markdown which will get fixed in another pr. The workspace-backup failed due to the issue described in #77

@manics manics changed the title Automatically run pre-commit in GitHub workflow for pushes and pull requests WIP: Automatically run pre-commit in GitHub workflow for pushes and pull requests Jul 26, 2022
@manics manics marked this pull request as draft July 26, 2022 13:05
@manics manics force-pushed the github-precommit branch from 4babe3a to 5de4909 Compare June 13, 2023 16:45
@manics manics force-pushed the github-precommit branch from 5de4909 to f08bb69 Compare June 13, 2023 16:50
@manics manics changed the title WIP: Automatically run pre-commit in GitHub workflow for pushes and pull requests Automatically run pre-commit in GitHub workflow for pushes and pull requests Jun 13, 2023
@manics manics marked this pull request as ready for review June 13, 2023 16:59
@manics
Copy link
Member Author

manics commented Jun 13, 2023

This PR should contain only reformatting. Best reviewed with white-space ignored:
https://github.com/HicResearch/TREEHOOSE/pull/60/files?w=1

@manics manics requested review from AaronJackson and removed request for awskaran June 13, 2023 17:01
Copy link
Member

@AaronJackson AaronJackson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good apart from the US spelling of "organisation" but it probably does better align with AWS Organizations

@manics manics merged commit b2fbe1f into main Jun 14, 2023
@manics manics deleted the github-precommit branch June 14, 2023 11:57
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.

Creating CI pipeline using github actions
3 participants