Initial commit.

Signed-off-by: Pavel Kirilin <win10@list.ru>
This commit is contained in:
2023-02-20 01:20:41 +04:00
parent 9a04acd753
commit faae5e4898
39 changed files with 3420 additions and 2 deletions

61
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,61 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: trailing-whitespace
- repo: local
hooks:
- id: fmt
types:
- rust
name: cargo fmt
language: system
entry: cargo
pass_filenames: false
args:
- fmt
- --
- --config
- use_try_shorthand=true,imports_granularity=Crate
- id: clippy
types:
- rust
name: cargo clippy
language: system
pass_filenames: false
entry: cargo
args:
- clippy
- --all-features
- --all
- -p
- rustus
- --
- -W
- clippy::all
- -W
- clippy::pedantic
- -D
- warnings
- id: check
types:
- rust
name: cargo check
language: system
entry: cargo
pass_filenames: false
args:
- check
- id: check-all
types:
- rust
name: cargo check all
language: system
entry: cargo
pass_filenames: false
args:
- check
- --all-features