-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
64 lines (59 loc) · 1.7 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
repos:
# a set of useful Python-based pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
# supported hooks: https://pre-commit.com/hooks.html
- id: trailing-whitespace
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: check-json
- id: check-merge-conflict
args: ["--assume-in-merge"]
- id: check-added-large-files
args: ["--maxkb=10240"]
- id: debug-statements
- id: detect-private-key
# black
- repo: https://github.com/ambv/black
rev: 25.1.0
hooks:
- id: black
args: [--line-length=79]
# flake8
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
# isort
- repo: https://github.com/timothycrosley/isort
rev: 6.0.0
hooks:
- id: isort
# shellcheck-py for linting shell files
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
# sqlfluff for linting SQL files
- repo: https://github.com/sqlfluff/sqlfluff
rev: 3.3.0
hooks:
- id: sqlfluff-lint
args:
[
"--dialect",
"mysql",
"--exclude-rules",
"RF02,RF04,ST10,CP02",
]
# RF02 - reference qualification
- id: sqlfluff-fix
args:
[
"--dialect",
"mysql",
"--exclude-rules",
"RF02,RF04,ST10,CP02",
]