-
Notifications
You must be signed in to change notification settings - Fork 246
/
.pre-commit-config.yaml
45 lines (41 loc) · 1.09 KB
/
.pre-commit-config.yaml
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
exclude: "migrations/|^llmstack/static/|_pb2.py$|_pb2.pyi$|_grpc.py$"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
files: \.py$
- id: end-of-file-fixer
files: \.py$
- id: check-yaml
files: \.py$
- id: debug-statements
files: \.py$
- id: check-added-large-files
files: \.py$
- id: check-ast
files: \.py$
- id: fix-byte-order-marker
files: \.py$
- id: check-case-conflict
files: \.py$
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: [--profile=black]
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
args: [--line-length=120]
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
args: [--max-line-length=300, --extend-ignore=E203]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
types_or: [css, javascript, jsx, markdown, yaml]