Skip to content

Commit b19aceb

Browse files
committed
enable precommit hooks
1 parent 81e950f commit b19aceb

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.pre-commit-config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
repos:
2+
- repo: https://github.com/norwoodj/helm-docs
3+
rev: "v1.13.1"
4+
hooks:
5+
- id: helm-docs-built
6+
args:
7+
- --chart-search-root=tools/pytorchjob-generator
8+
- --sort-values-order=file
9+
- repo: local
10+
hooks:
11+
- id: helm-unittests
12+
name: run helm unittests
13+
language: system
14+
entry: helm unittest
15+
pass_filenames: false
16+
always_run: true
17+
args:
18+
- tools/pytorchjob-generator/chart

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,13 @@ automate this process, we provide a Helm chart that captures best practices and
4141
common configuration options. Using this Helm chart helps eliminate common
4242
mistakes. Please see [pytorchjob-generator](tools/pytorchjob-generator) for
4343
detailed usage instructions.
44+
45+
## Development Setup
46+
47+
If you will be contributing to the development of the MLBatch project, you must
48+
setup precommit hooks for your local clone of the repository. Do the following
49+
once, immediately after cloning this repo:
50+
```shell
51+
helm plugin install https://github.com/helm-unittest/helm-unittest.git
52+
pre-commit install
53+
```

0 commit comments

Comments
 (0)