-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
88 lines (78 loc) · 2.57 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
repos:
- repo: local
hooks:
- id: debug-statements
name: 🐛 debug
entry: poetry run debug-statement-hook
language: system
types: [python]
stages: [commit]
- id: trailing-whitespace
name: ✂️ trailing-whitespace
entry: poetry run trailing-whitespace-fixer
language: system
types_or: [dotenv, gitignore, makefile, markdown, plain-text, python, sh, terraform, text, toml, yaml]
stages: [commit]
- id: end-of-file-fixer
name: ⛔️ end-of-file-fixer
entry: poetry run end-of-file-fixer
exclude: ^source_data/
language: system
types_or: [dotenv, gitignore, makefile, markdown, plain-text, python, sh, terraform, text, toml, yaml]
stages: [commit]
- id: detect-aws-credentials
name: ☁️ detect-aws-credentials
entry: poetry run detect-aws-credentials
language: system
types_or: [dotenv, gitignore, makefile, markdown, plain-text, python, sh, terraform, text, toml, yaml]
stages: [manual]
- id: check-yaml
name: 🕵️♂️ check-yaml
entry: poetry run check-yaml
language: system
types: [yaml]
stages: [commit]
- id: black
name: ♟️ black
entry: poetry run black
language: system
types: [python]
stages: [commit]
- id: mypy
name: 🆎 mypy
entry: poetry run mypy
args: [--config-file, mypy.ini]
language: system
types: [python]
stages: [commit]
- id: ruff
name: 🌟 ruff
entry: poetry run ruff check
language: system
types: [python]
stages: [commit]
- id: interrogate
name: 🔎 interrogate
entry: poetry run interrogate
exclude: ^diagrams/
language: system
types: [python]
stages: [commit]
- id: sqlfluff-fix-dbt
name: 🚀 sqlfluff-fix-dbt
entry: poetry run sqlfluff fix
files: ^dbt/
args: [--force, --config, ./dbt/superside/.sqlfluff]
language: system
description: 'Fixes SQL lint errors with `SQLFluff` in the dbt directory'
types: [sql]
stages: [manual]
- id: sqlfluff-lint-dbt
name: 🚀 sqlfluff-lint-dbt
entry: poetry run sqlfluff lint
files: ^dbt/
args: [--config, ./dbt/superside/.sqlfluff]
language: system
description: 'Lints SQL files with `SQLFluff` in the dbt directory'
types: [sql]
stages: [manual]