-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
40 lines (40 loc) · 1.26 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# doc : https://pre-commit.com/#new-hooks
repos:
- repo: local # run local commands (no need of proxy), where `entry` is the command to execute
hooks:
- id: isort
name: run isort on all
entry: isort .
language: system
types: [python]
- id: black
name: run black on all
entry: black .
language: system
types: [python]
- id: gen-sql
name: regenerate sql files
entry: python ./core/sql/generate_sql.py
language: system
always_run: true
pass_filenames: false
files: ./core/sql/generate_sql.py
- id: sqlfluff
name: run sqlfluff linter on all .sql files (non-blocking, it lasts few minutes)
entry: sqlfluff lint .
language: system
types: [sql]
verbose: true
- id: data-tests
name: run data unit tests (non-blocking, it lasts few minutes)
entry: bash ./pipeline/bash/dags/test_integration.sh
language: system
verbose: true
files: '^(core|pipeline|tests)/'
pass_filenames: false
- id: gen-doc
name: regenerate build files for docs
entry: bash -c 'cd docs/ && make html'
language: system
verbose: true
always_run: true