forked from sqlfluff/sqlfluff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
49 lines (49 loc) · 1.25 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: end-of-file-fixer
exclude: (.*\.sql$|test/fixtures/linter/sqlfluffignore/path_c)
- id: trailing-whitespace
exclude: (.*\.sql$|test/fixtures/linter/sqlfluffignore/path_c)
- repo: https://github.com/psf/black
rev: 22.1.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.931
hooks:
- id: mypy
args: [--ignore-missing-imports]
additional_dependencies: [
types-toml,
types-pkg_resources,
types-chardet,
types-appdirs,
types-colorama,
types-pyyaml,
types-regex,
]
files: ^src/sqlfluff/.*
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies: [
flake8-black>=0.2.4,
flake8-docstrings,
]
- repo: https://github.com/pycqa/doc8
rev: 0.10.1
hooks:
- id: doc8
args: [
--file-encoding,
utf8,
]
files: docs/source/.*\.rst$
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.3
hooks:
- id: yamllint
args: [-c=.yamllint]