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

Transition to use pre-commit hook in jupyterhub/chartpress #2278

Conversation

consideRatio
Copy link
Member

@consideRatio consideRatio commented Jun 23, 2021

This PR stops using a locally defined pre-commit hook to run chartpress that also assumes chartpress has been installed ahead of time. By instead using a remotely defined pre-commit hook in jupyterhub/chartpress#127, chartpress will be automatically be installed by pre-commit which enables us to not crash trying to use the pre-commit.ci service.

After fixing this, I learned that the helmlint pre-commit hook also fail in the pre-commit.ci service because helm isn't getting installed but is assumed. Due to this, I simply opted to drop the helmlint hook instead. It is a trade off of course, but I feel a bit committed to trying out the pre-commit.ci service now and I don't think running helm lint as part of pre-commit is so important, it doesn't capture much errors I would say.

It was causing trouble for us as it couldn't be automatically installed
with `helm` as a dependency from where it was defined. Due to this and
the fact that I believe `helm lint` captures very few errors and that we
have a CI check for this and more already, I figure it is better we just
remove it because otherwise we can't use the pre-commit.ci service.
@consideRatio consideRatio force-pushed the pr/use-external-chartpress-pre-commit-hook branch from a53f798 to d7c9065 Compare June 23, 2021 17:45
@consideRatio consideRatio merged commit db3cfaa into jupyterhub:main Jun 23, 2021
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.

1 participant