forked from airbytehq/airbyte-python-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
77 lines (68 loc) · 1.86 KB
/
.pre-commit-config.yaml
File metadata and controls
77 lines (68 loc) · 1.86 KB
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: |
(?x)(
# Python/system files
^.*?/\.venv/.*$|
^.*?/node_modules/.*$|
# Generated/test files
^.*?/\.pytest_cache/.*$|
^.*?/__pycache__/.*$|
^.*?/\.mypy_cache/.*$|
^.*?/\.ruff_cache/.*$|
# Package management
^.*?/poetry\.lock$|
^.*?/package-lock\.json$|
^.*?/pnpm-lock\.yaml$|
# Build and test artifacts
^.*?/build/.*$|
^.*?/dist/.*$|
^.*?/\.coverage$|
^.*?/coverage\.xml$
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-toml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.5
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
args: [--write]
additional_dependencies:
- prettier@3.0.3
- repo: local
hooks:
- id: addlicense
name: Add license headers
entry: addlicense -c "Airbyte, Inc." -l apache -v -f LICENSE_SHORT
language: golang
additional_dependencies: [github.com/google/addlicense@v1.1.1]
files: \.py$
- id: poetry-check
name: Check Poetry lockfile
entry: poetry check
language: system
pass_filenames: false
always_run: true
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
name: mypy
entry: mypy
args: [--config-file=mypy.ini, --show-column-numbers]
files: ^airbyte_cdk/
pass_filenames: true
additional_dependencies: ["types-requests", "types-PyYAML"]