forked from airweave-ai/airweave
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
51 lines (48 loc) · 1.26 KB
/
.pre-commit-config.yaml
File metadata and controls
51 lines (48 loc) · 1.26 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
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
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.6
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix]
files: ^backend/
- id: ruff-format
types_or: [python, pyi, jupyter]
files: ^backend/
exclude: backend/tests
- repo: local
hooks:
- id: eslint
name: eslint
entry: bash -c 'cd frontend && npx eslint'
language: system
files: \.(js|jsx|ts|tsx)$
types: [file]
exclude: ^(?!frontend/).*$
- repo: https://github.com/codespell-project/codespell
# Configuration for codespell is in .codespellrc
rev: v2.4.1
hooks:
- id: codespell
exclude: >
(?x)^(
.*\.venv/.*|
.*venv/.*|
.*node_modules/.*|
.*package-lock\.json|
.*package\.json|
.*yarn\.lock|
.*\.git/.*
)$
- repo: https://github.com/commitizen-tools/commitizen
rev: v1.17.0
hooks:
- id: commitizen
stages: [commit-msg]