-
Notifications
You must be signed in to change notification settings - Fork 577
/
.pre-commit-config.yaml
65 lines (65 loc) · 1.93 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
ci:
autoupdate_schedule: weekly
skip: [mypy]
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 [pre-commit.ci]'
autofix_prs: false
default_language_version:
python: python3.11 # NOTE: sync with .python-version-default
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.4.7'
hooks:
- id: ruff
alias: r
verbose: true
args: [--exit-non-zero-on-fix, --show-fixes, --fix]
types_or: [python, pyi, jupyter]
- id: ruff-format
alias: rf
verbose: true
types_or: [python, pyi, jupyter]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.10.0'
hooks:
- id: mypy
args: [--strict]
additional_dependencies: [pydantic]
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: '2.7.3'
hooks:
- id: editorconfig-checker
verbose: true
alias: ec
types_or: [python, javascript]
exclude: |
(?x)^(
openllm-python/src/openllm_cli/entrypoint.py |
openllm-python/src/_openllm_tiny/_entrypoint.py
)$
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
verbose: true
- id: end-of-file-fixer
verbose: true
- id: check-yaml
args: ['--unsafe']
- id: check-toml
- id: check-docstring-first
- id: check-added-large-files
- id: debug-statements
- id: check-merge-conflict
- repo: https://github.com/econchick/interrogate
rev: 1.7.0
hooks:
- id: interrogate
verbose: true
types: [python]
exclude: ^(docs|tools|openllm-python/tests)
args: [--config=pyproject.toml]