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

Use pre-commit action #187

Closed
wants to merge 1 commit into from
Closed

Conversation

antonagestam
Copy link
Contributor

Attempt to fix pre-commit breaking on master by using the pre-commit action.


- name: Run pre-commit
run: pre-commit install && pre-commit run --all-files
- uses: pre-commit/action@v2.0.3
Copy link
Member

Choose a reason for hiding this comment

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

I think it is deprecated 🤔
We can use pre-commitci

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, that's sad news, I'll probably implement it as a reusable workflow in antonagestam/python-build because I really like the idea of everything running within Github Actions (for my own projects that is). I'll close this PR for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See antonagestam/phantom-types#185 that now links to https://github.com/antonagestam/python-build/blob/main/.github/workflows/pre-commit.yaml for reference and let me know if you'd want to use that. I like it for the simplicity and transparency :)

Copy link
Member

Choose a reason for hiding this comment

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

Yes, looks good! Is it possible to send PRs with fixes back?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sobolevn It might be feasible, but I suspect the same limitations would apply as for the action, e.g. this:

while you could technically configure this for a public repository (using a personal access token), I can't think of a way to do this safely without exposing a privileged token to pull requests -- if you have any ideas, please leave an issue!

Copy link
Member

Choose a reason for hiding this comment

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

Ok, CI is good enough for now! 👍
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants