Skip to content

Commit 9511d7f

Browse files
author
Hugo Rialan
committed
Add dataform_compile hook
1 parent d50e01a commit 9511d7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
This repository contains a pre-commit hook that allows you to automate the formatting of SQL and JS code in your Dataform project before each commit. The hook uses the `dataform format` command to format SQLX and JS files.
44

5+
It also includes a hook that runs `dataform compile` before each commit to ensure that your Dataform project compiles successfully.
6+
57
### How to Use
68

79
```
810
- repo: https://github.com/devoteamgcloud/pre-commit-dataform
911
rev: [Fill with latest release]
1012
hooks:
1113
- id: dataform_format
14+
- id: dataform_compile
1215
```

0 commit comments

Comments
 (0)