mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-01-22 14:31:26 -05:00
Prepare for 0.2.12 release Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Aaron <29749331+aarnphm@users.noreply.github.com>
119 lines
3.5 KiB
YAML
119 lines
3.5 KiB
YAML
# Copyright 2023 BentoML Team. All rights reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
ci:
|
|
autoupdate_schedule: weekly
|
|
skip: [check-models-table-update, check-models-table-update, changelog-dry-run, pyright, 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
|
|
exclude: '.*\.(css|js|svg)$'
|
|
repos:
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: 'v0.0.281'
|
|
hooks:
|
|
- id: ruff
|
|
args: [--exit-non-zero-on-fix, --show-fixes]
|
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
|
rev: '2.7.2'
|
|
hooks:
|
|
- id: editorconfig-checker
|
|
- repo: https://github.com/econchick/interrogate
|
|
rev: 1.5.0
|
|
hooks:
|
|
- id: interrogate
|
|
types: [python]
|
|
exclude: ^(docs|tools|tests)
|
|
args: [--config=pyproject.toml]
|
|
- repo: https://github.com/google/yapf
|
|
rev: v0.40.0
|
|
hooks:
|
|
- id: yapf
|
|
types: [python]
|
|
args: [--parallel, --recursive]
|
|
- repo: local
|
|
hooks:
|
|
- id: mypy
|
|
name: mypy
|
|
entry: ./tools/mypy
|
|
types: [python]
|
|
language: python
|
|
pass_filenames: false
|
|
verbose: true
|
|
exclude: |
|
|
(?x)^(
|
|
examples/.*|
|
|
tools/.*|
|
|
tests/.*|
|
|
src/openllm/playground/.*|
|
|
.github/.*
|
|
)$
|
|
additional_dependencies:
|
|
- mypy==1.4.1
|
|
- click>=8.1.6
|
|
- peft
|
|
- git+https://github.com/bentoml/BentoML.git@main
|
|
- git+https://github.com/huggingface/transformers.git@main
|
|
- types-psutil
|
|
- types-tabulate
|
|
- types-PyYAML
|
|
- types-protobuf
|
|
- id: pyright
|
|
name: pyright
|
|
entry: ./tools/pyright
|
|
types: [python]
|
|
language: node
|
|
pass_filenames: false
|
|
additional_dependencies: ['pyright@1.1.317']
|
|
verbose: true
|
|
- id: check-license-header
|
|
name: check for license headers
|
|
entry: ./tools/assert-license-headers
|
|
language: script
|
|
exclude_types:
|
|
- 'markdown'
|
|
- 'toml'
|
|
- 'json'
|
|
- 'text'
|
|
exclude: |
|
|
(?x)^(
|
|
tools/.*|
|
|
assets/.*|
|
|
changelog.d/.*|
|
|
typings/.*|
|
|
.github/.*
|
|
)$
|
|
- id: check-models-table-update
|
|
name: check if table in README.md is up-to-date
|
|
entry: ./tools/assert-model-table-latest
|
|
language: script
|
|
files: README.md
|
|
- id: changelog-dry-run
|
|
name: Running changelog dry-run
|
|
entry: hatch run changelog
|
|
language: system
|
|
files: CHANGELOG.md
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
exclude: |
|
|
(?x)^(
|
|
tests/models/.*
|
|
)$
|
|
- id: check-yaml
|
|
args: ['--unsafe']
|
|
- id: check-toml
|