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

Define pre-commit hook #127

Merged
merged 4 commits into from
Jun 23, 2021
Merged

Conversation

minrk
Copy link
Member

@minrk minrk commented Jun 22, 2021

Copies over pre-commit hook from zero-to-jupyterhub so it can be re-used.

name: chartpress --reset
files: (Chart|chartpress|values).ya?ml
description: Run `chartpress --reset` to clean up helm charts before committing.
entry: chartpress --reset
Copy link
Member

Choose a reason for hiding this comment

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

I considered this but figured it wouldnt work well as chartpress must be executed next to the chartprwss.yaml file, but binserhub and other git repos doesnt have it in the root folder.

Perhaps a param will be required for where one chartpress.yaml file is found.

@consideRatio
Copy link
Member

I understand from this pre-commit documentation that we kind of need to have this hook defined here to get chartpress automatically installed by pre-commit.ci service.

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

Successfully merging this pull request may close these issues.

2 participants