1 Star 0 Fork 59

tupelo-shen / sysmaster

forked from openEuler / sysmaster 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.pre-commit-config.yaml 3.48 KB
一键复制 编辑 原始数据 按行查看 历史
fail_fast: true
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks.git"
rev: v4.3.0
hooks:
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-merge-conflict
- 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
# - id: check-shebang-scripts-are-executable
- repo: "https://github.com/codespell-project/codespell"
rev: v2.2.1
hooks:
- id: codespell
args: [-I, ci/codespell_ignore_words]
verbose: true
# - repo: "https://github.com/psf/black.git"
# rev: 22.8.0
# hooks:
# - id: black
# - repo: https://github.com/jumanjihouse/pre-commit-hooks
# rev: master # or specific git tag
# hooks:
# - id: bundler-audit
# # - id: check-mailmap
# - id: fasterer
# # - id: forbid-binary
# # - id: forbid-space-in-indent
# # - id: git-check # Configure in .gitattributes
# # - id: git-dirty # Configure in .gitignore
# # - id: markdownlint # Configure in .mdlrc
# - id: reek
# # - id: require-ascii
# - id: rubocop
# # - id: script-must-have-extension
# # - id: script-must-not-have-extension
# # - id: shellcheck
# # - id: shfmt
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.4.0
hooks:
- id: pretty-format-rust
args: [--autofix]
# - repo: https://github.com/doublify/pre-commit-rust
# rev: master
# hooks:
# - id: clippy
- repo: local
hooks:
# - id: cargo-clippy
# name: cargo clippy
# description: Lint rust sources
# entry: bash -c 'RUSTC_WRAPPER="" cargo clippy --all-targets --all-features --tests --benches --examples -- -v'
# language: rust
# pass_filenames: false
# files: \.rs$
# verbose: true
- id: commit-msg
name: commit-msg
description: use commit-msg for commit.
entry: bash -c '\cp -ar ci/commit-msg .git/hooks/'
language: system
pass_filenames: false
verbose: true
- id: cargo-fmt
name: cargo fmt
description: Format files with rustfmt.
entry: bash -c 'cargo fmt -v --all -- --check -v'
language: rust
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-features --tests --benches --examples --allow-dirty --allow-staged'
language: rust
pass_filenames: false
files: \.rs$
verbose: true
- id: cargo-build
name: cargo build
description: build the package for errors.
entry: bash -c 'cargo build --release --all -v'
language: rust
pass_filenames: false
files: \.(rs|toml|sh)$
- id: cargo-test
name: cargo test
description: test the package for errors.
entry: bash -c 'RUST_BACKTRACE=1 cargo test --all --release -v -- --nocapture --test-threads=1'
language: rust
pass_filenames: false
files: \.(rs|toml|sh)$
# - id: cargo-deny
# name: cargo deny check
# description: Check cargo depencencies
# entry: bash -c 'cargo deny check'
# language: rust
# files: \.rs$
# args: []
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/tupeloshen/sysmaster.git
git@gitee.com:tupeloshen/sysmaster.git
tupeloshen
sysmaster
sysmaster
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891