From cebfe925ef53a023be0959abf2b141add7e0da48 Mon Sep 17 00:00:00 2001 From: lvhan028 Date: Wed, 30 Oct 2024 14:41:27 +0800 Subject: [PATCH] update pre-commit config --- .pre-commit-config.yaml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 83d077f78..bec942aa1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,9 @@ repos: - repo: https://github.com/PyCQA/flake8 - rev: 4.0.1 + rev: 5.0.4 hooks: - id: flake8 - args: ["--exclude=lmdeploy/turbomind/triton_models/*,lmdeploy/pytorch/modeling/*", "--max-line-length=79"] + args: ["--exclude=lmdeploy/pytorch/modeling/*"] - repo: https://github.com/PyCQA/isort rev: 5.11.5 hooks: @@ -12,14 +12,9 @@ repos: rev: v0.32.0 hooks: - id: yapf - name: yapf - description: 'Formatter for Python code' - entry: yapf - language: python - args: ['-i', '--style={based_on_style: pep8, column_limit: 79}'] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 + rev: v4.3.0 hooks: - id: trailing-whitespace - id: check-yaml