mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-01 01:10:34 +08:00
* ci: bump oxi, clang, prettier, markdownlint * chore: Auto update by pre-commit hooks [skip changelog] * chore: 移除不再使用clang-format的JSON文件 * chore: clang-format disable * chore: clang版本更新 * chore: Auto update by pre-commit hooks [skip changelog] * chore: ver注释 * docs: Modify the clang-format version restriction in the documentation to match the current changes @zzyyyl --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
default_install_hook_types: [pre-commit, prepare-commit-msg]
|
|
ci:
|
|
autofix_commit_msg: "chore: Auto update by pre-commit hooks [skip changelog]"
|
|
autofix_prs: true
|
|
repos:
|
|
- repo: https://github.com/shssoichiro/oxipng
|
|
rev: v9.1.4
|
|
hooks:
|
|
- id: oxipng
|
|
args: ["-q", "-o", "2", "-s", "--ng"]
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
|
rev: v20.1.0
|
|
hooks:
|
|
- id: clang-format
|
|
files: ^src/MaaCore/.*
|
|
args: ["--assume-filename", ".clang-format"]
|
|
- repo: https://github.com/rbubley/mirrors-prettier
|
|
rev: v3.5.3
|
|
hooks:
|
|
- id: prettier
|
|
files: ^((\.github/ISSUE_TEMPLATE|docs|resource|src|tools|website)/.*|\.pre-commit-config\.yaml|package-definition\.json)
|
|
types_or:
|
|
- yaml
|
|
- json
|
|
- repo: https://github.com/DavidAnson/markdownlint-cli2
|
|
rev: v0.17.2
|
|
hooks:
|
|
- id: markdownlint-cli2
|
|
files: ^docs/.*|^README\.md$
|
|
types:
|
|
- markdown
|
|
args: ["--fix", "--config", "docs/.markdownlint.yaml", "#**/node_modules"]
|