代码拉取完成,页面将自动刷新
同步操作将从 const/sysmaster_5 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
fail_fast: true
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks.git"
rev: v4.4.0
hooks:
- id: check-added-large-files
args: ['--maxkb=100']
- id: check-symlinks
- id: check-toml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- id: detect-private-key
- id: check-executables-have-shebangs
files: ^(.*\.sh|.*\.py)$
- repo: local
hooks:
- id: codespell
name: codespell
description: Checks for common misspellings in text files.
entry: bash -c 'cargo clean;codespell -I ci/codespell_ignore_words -x ci/codespell_ignore_words -S *.rules -S ./vendor* -S ./target*'
language: system
pass_filenames: false
verbose: true
- id: cargo-override-set
name: cargo-override-set
description: unset override.
entry: bash -c 'rustup override set 1.57.0 || true'
language: system
pass_filenames: false
files: \.(rs|toml)$
verbose: false
- id: cargo-build
name: cargo build
description: build the package for errors.
entry: bash -c 'cargo build --all --features "default" -v'
language: system
pass_filenames: false
files: \.(rs|toml)$
verbose: true
- id: cargo-clippy
name: cargo clippy
description: Lint rust sources
entry: bash -c 'RUSTC_WRAPPER="" cargo clippy -vvv --all-targets --features "default" --all -- -Dwarnings'
language: system
pass_filenames: false
files: \.rs$
verbose: true
- id: cargo-fix
name: cargo fix
description: Check the package for errors.
entry: bash -c 'cargo fix -v --broken-code --all-targets --all --allow-dirty --allow-staged'
language: system
pass_filenames: false
files: \.rs$
verbose: true
- id: cargo-fmt
name: cargo fmt
description: Format files with rustfmt.
entry: bash -c 'cargo fmt -v --all -- --check -v'
language: system
pass_filenames: false
files: \.rs$
verbose: true
- id: cargo-test-tmpfile-cleanup
name: tmpfile cleanup
description: tmpfile cleanup.
entry: bash -c 'rm -rf target/*/reliability/'
language: system
pass_filenames: false
files: \.(rs|toml)$
verbose: true
- id: cargo-test
name: cargo test
description: test the package for errors.
entry: bash -c 'RUST_BACKTRACE=full cargo test --all-targets --all -v -- --nocapture --show-output --test-threads=1'
language: system
pass_filenames: false
files: \.(rs|toml)$
verbose: true
- id: cargo-override-unset
name: cargo-override-unset
description: unset override.
entry: bash -c 'rustup override unset || true'
language: system
pass_filenames: false
files: \.(rs|toml)$
verbose: false
# - id: cargo-deny
# name: cargo deny check
# description: Check cargo depencencies
# entry: bash -c 'cargo deny check'
# language: rust
# files: \.rs$
# args: []
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。