Skip to content

Commit

Permalink
Merge pull request #127 from minrk/pre-commit-hook
Browse files Browse the repository at this point in the history
Define pre-commit hook
  • Loading branch information
consideRatio authored Jun 23, 2021
2 parents d19e6d6 + d169c31 commit 13be6da
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This is a pre-commit hook definition, for more details see:
# https://pre-commit.com/#new-hooks
#
# The purpose of this hook is to restore Chart.yaml and values.yaml files
# that may have been updated by chartpress.
#
- id: chartpress
name: chartpress --reset
files: (Chart|chartpress|values).ya?ml
description: Run `chartpress --reset` to clean up helm charts before committing.
entry: chartpress --reset
language: python
pass_filenames: false
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def run(self):
install_requires=[
"ruamel.yaml>=0.15.44",
"docker>=3.2.0",
# workaround https://github.com/docker/docker-py/pull/2844
"six",
],
classifiers=[
"Intended Audience :: Developers",
Expand Down

0 comments on commit 13be6da

Please sign in to comment.