From 6fecfa640d3acd3841baac07c467ee95429ae16c Mon Sep 17 00:00:00 2001 From: SherkeyXD <57581480+SherkeyXD@users.noreply.github.com> Date: Mon, 29 Jul 2024 21:33:53 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20pre-commit-ci=20=E6=B7=BB=E5=8A=A0=20c?= =?UTF-8?q?lang-format=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 37 ++++++------------------------------- 1 file changed, 6 insertions(+), 31 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4963970fa3..edc68a6ac1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,6 +8,12 @@ repos: hooks: - id: oxipng args: ["-q", "-o", "2", "-s", "--ng"] + - repo: https://github.com/pre-commit/mirrors-clang-format + rev: v17.0.1 + hooks: + - id: clang-format + files: ^src/MaaCore/.* + args: ["--assume-filename", ".clang-format"] - repo: https://github.com/pre-commit/mirrors-prettier rev: v4.0.0-alpha.8 hooks: @@ -23,34 +29,3 @@ repos: types: - markdown args: ["--fix", "--config", "docs/.markdownlint.yaml", "#**/node_modules"] - #- repo: https://github.com/lycheeverse/lychee - # rev: v0.15.1 - # hooks: - # - id: lychee - # files: ^docs/.*|^README\.md$ - # types: - # - markdown - # args: - # #- --verbose - # - --quiet - # - --no-progress - # - --exclude - # - 'https://map\.ark-nights\.com/areas' - # - --exclude - # - 'https://.*\.maa-org\.net/.*' - # - --exclude - # - 'https://support\.bluestacks\.com/.*' - # - --exclude - # - 'https://www\.bigfun\.cn/.*' - # - --exclude - # - 'https://myqqbot\.com/.*' - # - --exclude - # - 'http://xn--\w+\.com/' - # - --exclude - # - 'https://mywebsite\.com/.*' - # - --exclude - # - '/image/*' - # - --exclude-path - # - "docs/zh-tw/manual/introduction/introduction_old.md" - # - --exclude-path - # - "docs/ja-jp/manual/introduction/introduction_old.md"