forked from bentoml/BentoML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
32 lines (32 loc) · 1.06 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
ci:
autoupdate_schedule: monthly
autofix_commit_msg: "ci: auto fixes from pre-commit.ci\n\nFor more information, see https://pre-commit.ci"
autoupdate_commit_msg: 'ci: pre-commit autoupdate [skip ci]'
exclude: '(.*\.(css|js|svg))|(.*_generated.*)$'
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.1.4'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- repo: https://github.com/psf/black
rev: 23.10.1
hooks:
- id: black-jupyter
files: '(src|tests|docs|examples|typings)/'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/pdm-project/pdm
rev: 2.10.0
hooks:
- id: pdm-lock-check
- repo: https://github.com/bufbuild/buf
rev: v1.27.2
hooks:
- id: buf-format
args: [--config=src/bentoml/grpc/buf.yaml, src/bentoml/grpc]
- id: buf-lint
args: [--config=src/bentoml/grpc/buf.yaml, --error-format=msvs, src/bentoml/grpc]