Skip to content

Commit 22016ef

Browse files
committed
chore: Prevent accidently commiting internal files to upstream
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent 5fa38f4 commit 22016ef

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,13 @@ repos:
2727
- id: buildifier
2828
args:
2929
- --warnings=all
30-
- id: buildifier-lint
30+
- id: buildifier-lint
31+
- repo: local
32+
hooks:
33+
- id: dont-commit-upstream
34+
name: NVIDIA-INTERNAL check
35+
entry: "!NVIDIA-INTERNAL"
36+
exclude: "^.pre-commit-config.yaml"
37+
language: pygrep
38+
types: [text]
39+

0 commit comments

Comments
 (0)