From daff4e22afb18c0a931647361b98c8d3a0fd595d Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Tue, 19 Jul 2022 15:03:51 +0800 Subject: [PATCH] chore(pre-commit): update pre-commit hooks Signed-off-by: Xuehai Pan --- .pre-commit-config.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3472056..c3eac50 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,17 +13,28 @@ repos: - id: check-ast - id: check-added-large-files - id: check-merge-conflict + - id: check-executables-have-shebangs + - id: check-shebang-scripts-are-executable - id: detect-private-key + - id: debug-statements - id: double-quote-string-fixer - repo: https://github.com/PyCQA/isort rev: 5.10.1 hooks: - id: isort + stages: [commit, push, manual] - repo: https://github.com/psf/black rev: 22.6.0 hooks: - id: black - - repo: https://github.com/PyCQA/pylint - rev: v2.14.5 + args: [--safe] + stages: [commit, push, manual] + - repo: local hooks: - id: pylint + name: pylint + entry: pylint + language: system + types: [python] + require_serial: true + stages: [commit, push, manual]