From 3e6d4c20fae50953608909266504997c6171c1c7 Mon Sep 17 00:00:00 2001 From: "Xuefeng Ding (IHEP)" <dingxf@ihep.ac.cn> Date: Fri, 29 Nov 2024 00:23:32 +0800 Subject: [PATCH] python typing --- .pre-commit-config.yaml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3849157..601377a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,28 +18,33 @@ repos: - id: requirements-txt-fixer - id: trailing-whitespace - - repo: https://github.com/kynan/nbstripout - rev: 0.8.0 + - repo: https://github.com/cheshirekow/cmake-format-precommit + rev: v0.6.13 hooks: - - id: nbstripout - types_or: [jupyter] + - id: cmake-format + types: [file] + files: (\.cmake|CMakeLists.txt)(.in)?$ - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v19.1.3 + rev: v19.1.4 hooks: - id: clang-format types_or: [c++, c, cuda] + - repo: https://github.com/kynan/nbstripout + rev: 0.8.1 + hooks: + - id: nbstripout + types_or: [jupyter] + - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.7.4 # Use the latest version + rev: v0.8.0 # Use the latest version hooks: - id: ruff args: ["--fix", "--show-fixes"] - id: ruff-format - - repo: https://github.com/cheshirekow/cmake-format-precommit - rev: v0.6.13 + - repo: https://github.com/RobertCraigie/pyright-python + rev: v1.1.389 hooks: - - id: cmake-format - types: [file] - files: (\.cmake|CMakeLists.txt)(.in)?$ + - id: pyright -- GitLab