Skip to content

Commit 5211973

Browse files
committed
fix pre-commit
1 parent d6a087c commit 5211973

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

.pre-commit-config.yaml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
exclude: |
44
(?x)(
55
# Python/system files
6-
^.*/__init__\.py$|
76
^.*?/\.venv/.*$|
87
^.*?/node_modules/.*$|
9-
8+
109
# Generated/test files
1110
^.*?/\.pytest_cache/.*$|
1211
^.*?/__pycache__/.*$|
1312
^.*?/\.mypy_cache/.*$|
14-
^.*?/\.ruff_cache/.*$
13+
^.*?/\.ruff_cache/.*$|
1514
1615
# Package management
1716
^.*?/poetry\.lock$|
@@ -22,7 +21,7 @@ exclude: |
2221
^.*?/build/.*$|
2322
^.*?/dist/.*$|
2423
^.*?/\.coverage$|
25-
^.*?/coverage\.xml$|
24+
^.*?/coverage\.xml$
2625
)
2726
2827
repos:
@@ -38,18 +37,15 @@ repos:
3837
- repo: https://github.com/astral-sh/ruff-pre-commit
3938
rev: v0.11.5
4039
hooks:
41-
# Run the linter with repo-defined settings
4240
- id: ruff
4341
args: [--fix]
44-
45-
# Run the formatter with repo-defined settings
4642
- id: ruff-format
4743

4844
- repo: https://github.com/pre-commit/mirrors-prettier
4945
rev: v3.0.3
5046
hooks:
5147
- id: prettier
52-
types_or: [json, yaml]
48+
args: [--write]
5349
additional_dependencies:
5450
5551

@@ -61,3 +57,20 @@ repos:
6157
language: golang
6258
additional_dependencies: [github.com/google/[email protected]]
6359
files: \.py$
60+
61+
- id: poetry-check
62+
name: Check Poetry lockfile
63+
entry: poetry check
64+
language: system
65+
pass_filenames: false
66+
always_run: true
67+
68+
- repo: https://github.com/pre-commit/mirrors-mypy
69+
rev: v1.8.0
70+
hooks:
71+
- id: mypy
72+
name: mypy
73+
entry: mypy
74+
args: [--config-file=mypy.ini, --show-column-numbers]
75+
files: ^airbyte_cdk/
76+
pass_filenames: true

0 commit comments

Comments
 (0)