mirror of
https://github.com/bentoml/OpenLLM.git
synced 2025-12-23 23:57:46 -05:00
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
ci:
|
|
autoupdate_schedule: weekly
|
|
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: true
|
|
default_language_version:
|
|
python: python3.11 # NOTE: sync with .python-version-default
|
|
repos:
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: "v0.12.12"
|
|
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.17.1"
|
|
hooks:
|
|
- id: mypy
|
|
args: [--strict, --ignore-missing-imports]
|
|
additional_dependencies:
|
|
[pydantic, types-pyyaml, types-tabulate, types-psutil, typer]
|
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
|
rev: "3.4.0"
|
|
hooks:
|
|
- id: editorconfig-checker
|
|
verbose: true
|
|
alias: ec
|
|
types_or: [python]
|
|
- repo: meta
|
|
hooks:
|
|
- id: check-hooks-apply
|
|
- id: check-useless-excludes
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.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
|