-
Notifications
You must be signed in to change notification settings - Fork 120
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (48 loc) · 1.19 KB
/
.pre-commit-config.yaml
File metadata and controls
52 lines (48 loc) · 1.19 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
exclude: ^proto/
repos:
- repo: local
hooks:
- id: stubs-autogen
name: stubs-autogen
language: system
entry: ./tools/stubs_regen.sh
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.14.7
hooks:
# Run the linter.
- id: ruff
args: [ weaviate, integration, test, mock_tests, journey_tests, --fix ]
# Run the formatter.
- id: ruff-format
args: [ weaviate, integration, test, mock_tests, journey_tests ]
- repo: https://github.com/PyCQA/flake8
rev: 7.3.0
hooks:
- id: flake8
name: linting
additional_dependencies: [
'flake8-bugbear==24.12.12',
'flake8-comprehensions==3.17.0',
'flake8-builtins==3.0.0'
]
- id: flake8
name: docstrings
additional_dependencies: [
'flake8-docstrings==1.7.0',
'pydoclint==0.7.3',
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: no-commit-to-branch
- id: trailing-whitespace
- repo: local
hooks:
- id: pyright
name: pyright
entry: pyright
language: node
pass_filenames: false
types: [python]
additional_dependencies: [pyright@1.1.400]