1 Star 0 Fork 61

WangTsing-Yan/process1

forked from openEuler/sysmaster 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.pre-commit-config.yaml 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
hexiaowen 提交于 2022-04-15 16:02 . fix warning
fail_fast: true
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks.git"
rev: v4.1.0
hooks:
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
# - id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: "https://github.com/psf/black.git"
rev: 22.1.0
hooks:
- id: black
- repo: local
hooks:
- id: cargo-clippy
name: cargo clippy
description: Lint rust sources
entry: bash -c 'cargo clippy --all -- -v -D warnings'
language: rust
files: \.rs$
pass_filenames: false
- id: cargo-fmt
name: cargo fmt
description: Format files with rustfmt.
entry: bash -c 'cargo fmt -- --check -v'
language: rust
files: \.rs$
args: []
- id: cargo-check
name: cargo check
description: Check the package for errors.
entry: bash -c 'cargo check --all -- -v'
language: rust
files: \.rs$
pass_filenames: false
- id: cargo-test
name: cargo test
description: unit test for the project
entry: bash -c 'cargo test --all -- -v'
language: rust
files: \.rs$
pass_filenames: false
#- id: cargo-deny
# name: cargo deny check
# description: Check cargo depencencies
# entry: bash -c 'cargo deny check'
# language: rust
# files: \.rs$
# args: []
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/WangTsing-Yan/process1.git
git@gitee.com:WangTsing-Yan/process1.git
WangTsing-Yan
process1
process1
master

搜索帮助