markdrago / pgsanity

Check syntax of postgresql sql files
MIT License
316 stars 28 forks source link

[REF] Allow this repo to be a pre-commit hook #35

Closed fernandahf closed 1 year ago

fernandahf commented 1 year ago

With these changes, this repo will be used as a hook in pre-commit.

fernandahf commented 1 year ago

For record:

The tests worked fine!

Screenshot 2022-12-19 at 15 42 54

Screenshot 2022-12-19 at 15 43 11

cc @moylop260

fernandahf commented 1 year ago

@markdrago

Could you take a look at this, please?

Those little changes allow using this repo as the hook of https://github.com/pre-commit/pre-commit

More info:

https://pre-commit.com/#new-hooks

moylop260 commented 1 year ago

@markdrago

What do you think?