forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
50 lines (44 loc) · 1.23 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
repos:
- repo: https://github.com/johann-petrak/licenseheaders.git
rev: v0.8.8
hooks:
- id: licenseheaders
args: ["--tmpl=LICENSE_SHORT", "--ext=py", "-f"]
- repo: https://github.com/ambv/black
rev: 20.8b1
hooks:
- id: black
args: ["--line-length=140"]
- repo: https://github.com/timothycrosley/isort
rev: 5.6.4
hooks:
- id: isort
args: ["--settings-path=tools/python/.isort.cfg"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.2
hooks:
- id: prettier
types_or: [yaml, json]
exclude: ^.github/
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
args: ["--config=tools/python/.flake8"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
hooks:
- id: mypy
args: ["--config-file=tools/python/.mypy.ini"]
- repo: local
hooks:
- id: spec-linter
name: validate connectors spec files
language: system
entry: python tools/git_hooks/spec_linter.py
files: ^.*/spec.json$
exclude: |
(?x)^.*(
/connectors/destination-e2e-test|
/connectors/source-e2e-test
).*$