代码拉取完成,页面将自动刷新
default_language_version:
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: no-commit-to-branch
args: ["--branch", "main", "--branch", "staging", "--branch", "dev"]
- id: mixed-line-ending
- id: end-of-file-fixer
exclude: '(\.sql|\.out|\.rs)$'
- id: trailing-whitespace
exclude: '(\.sql|\.out|\.rs)$'
- id: check-added-large-files
- id: check-merge-conflict
- id: check-case-conflict
- id: check-docstring-first
- id: check-symlinks
- id: check-yaml
- id: check-json
- id: check-xml
- id: check-ast
- id: check-toml
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
exclude: '\.rs$' # This doesn't play well with #![allow(clippy::crate_in_macro_def)]
- id: check-vcs-permalinks
- id: detect-private-key
- id: detect-aws-credentials
- id: debug-statements
- id: destroyed-symlinks
- id: fix-encoding-pragma
- id: fix-byte-order-marker
- id: requirements-txt-fixer
- repo: https://github.com/lovesegfault/beautysh
rev: v6.2.1
hooks:
- id: beautysh
args: ["--indent-size", "2"]
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.9.0
hooks:
- id: shellcheck
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.37.0
hooks:
- id: markdownlint
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
- id: clippy
- id: cargo-check
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
- repo: https://github.com/pylint-dev/pylint
rev: v3.0.1
hooks:
- id: pylint
- repo: https://github.com/CoderJoshDK/precommit-mintlify-validate/
rev: v0.2.0
hooks:
- id: mintlify-validate
args: [docs]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。