mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
6e416c62dd
* to_request_for_infer initial commit * refact to from_chat_completion_request * preprocess use request initial commit * bugfix * processors refact to using request * bug fix * refact Request from_generic_request * post process initial commit * bugfix * postprocess second commit * bugfix * serving_embedding initial commit * serving_reward initial commit * bugfix * replace function name * async_llm initial commit * offline initial commit and fix bug * bugfix * fix async_llm * remove add speculate_metrics into data * fix logprobs bug * fix echo bug * fix bug * fix reasoning_max_tokens * bugfix * bugfix and modify unittest * bugfix and modify unit test * bugfix * bugfix * bugfix * modify unittest * fix error when reasong_content is none for text_processor * remove some unnessary logic * revert removed logic * implement add and set method for RequestOutput and refact code * modify unit test * modify unit test * union process_request and process_request_obj * remove a unit test * union process_response and process_response_obj * support qwen3_vl_processor * modify unittest and remove comments * fix prompt_logprobs * fix codestyle * add v1 * v1 * fix unit test * fix unit test * fix pre-commit * fix * add process request * add process request * fix * fix * fix unit test * fix unit test * fix unit test * fix unit test * fix unit test * remove file * add unit test * add unit test * add unit test * fix unit test * fix unit test * fix * fix --------- Co-authored-by: Jiaxin Sui <95567040+plusNew001@users.noreply.github.com> Co-authored-by: luukunn <981429396@qq.com> Co-authored-by: luukunn <83932082+luukunn@users.noreply.github.com> Co-authored-by: Zhang Yulong <35552275+ZhangYulongg@users.noreply.github.com>
67 lines
1.5 KiB
YAML
67 lines
1.5 KiB
YAML
exclude: |
|
|
(?x)^(
|
|
dockerfiles/.+
|
|
)$
|
|
default_install_hook_types:
|
|
- pre-commit
|
|
- commit-msg
|
|
default_stages:
|
|
- pre-commit # Run locally
|
|
- commit-msg
|
|
# - manual # Run in CI
|
|
repos:
|
|
- repo: https://github.com/psf/black.git
|
|
rev: 25.1.0
|
|
hooks:
|
|
- id: black
|
|
files: \.(py|pyi)$
|
|
additional_dependencies: [toml]
|
|
# 自动排序
|
|
- repo: https://github.com/PyCQA/isort
|
|
rev: 5.11.5
|
|
hooks:
|
|
- id: isort
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: 7.0.0
|
|
hooks:
|
|
- id: flake8
|
|
# 代码检查
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.11.7
|
|
hooks:
|
|
- id: ruff
|
|
args: [--output-format, github, --fix, --line-length=120, --config, pyproject.toml]
|
|
# For C++ files
|
|
- repo: local
|
|
hooks:
|
|
- id: clang-format
|
|
name: clang-format
|
|
description: Format files with ClangFormat.
|
|
entry: clang-format -i
|
|
language: system
|
|
files: \.(c|cc|cxx|cpp|cu|h|cuh|hpp|hxx|xpu|kps)$
|
|
# # 拼写检查
|
|
# - repo: https://github.com/codespell-project/codespell
|
|
# rev: v2.4.1
|
|
# hooks:
|
|
# - id: codespell
|
|
# additional_dependencies: ['tomli']
|
|
# args: ['--toml', 'pyproject.toml']
|
|
|
|
# markdown
|
|
- repo: https://github.com/jackdewinter/pymarkdown
|
|
rev: v0.9.29
|
|
hooks:
|
|
- id: pymarkdown
|
|
args: ["-d", "MD029,MD031", fix]
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: check-merge-conflict
|
|
- id: check-symlinks
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- id: detect-private-key
|
|
- id: check-symlinks
|
|
- id: check-added-large-files
|