mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-01 01:10:34 +08:00
34 lines
1.1 KiB
YAML
34 lines
1.1 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.2
|
|
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:
|
|
# - id: prettier
|
|
# verbose: true
|
|
# 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.13.0
|
|
hooks:
|
|
- id: markdownlint-cli2
|
|
files: ^docs/.*|^README\.md$
|
|
types:
|
|
- markdown
|
|
args: ["--fix", "--config", "docs/.markdownlint.yaml", "#**/node_modules"]
|