Skip to content

Commit 7974afd

Browse files
committed
fix pre-commit config
1 parent abae66d commit 7974afd

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,21 @@ repos:
1414
hooks:
1515
- id: add-trailing-comma
1616

17-
- repo: local
17+
- repo: https://github.com/psf/black
18+
rev: 25.1.0
1819
hooks:
1920
- id: black
20-
name: Format with Black
21-
entry: poetry run black
22-
language: system
23-
types: [python]
2421

22+
- repo: https://github.com/astral-sh/ruff-pre-commit
23+
rev: v0.9.5
24+
hooks:
2525
- id: ruff
26-
name: Run ruff lints
27-
entry: poetry run ruff
28-
language: system
29-
pass_filenames: false
30-
types: [python]
3126
args:
32-
- "check"
3327
- "--fix"
3428
- "otlp_psqlpy"
3529

30+
- repo: https://github.com/pre-commit/mirrors-mypy
31+
rev: v1.15.0
32+
hooks:
3633
- id: mypy
37-
name: Validate types with MyPy
38-
entry: poetry run mypy
39-
language: system
40-
pass_filenames: false
41-
types: [python]
42-
args:
43-
- ./otlp_psqlpy
34+
additional_dependencies: ["."]

0 commit comments

Comments
 (0)