Skip to content

Commit 243a5cb

Browse files
authored
Add pre-commit integration (#556)
This PR introduces direct [pre-commit](https://pre-commit.com/) compatibility. Here is an example of how it can be integrated after it will be integrated: ``` repos: - repo: https://github.com/sql-formatter-org/sql-formatter rev: '' hooks: - id: sql-formatter ``` Right now you need to create a separate repository in order to be able to integrate with `sql-formatter`. Like this one: https://github.com/slyapustin/pre-commit-sql-formatter
2 parents dd5dd1e + ebc7a43 commit 243a5cb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- id: sql-formatter
2+
name: sql-formatter
3+
description: "Reformat SQL files with sql-formatter"
4+
entry: sql-formatter --fix
5+
language: node
6+
types: [sql]

0 commit comments

Comments
 (0)