Add rustfmt config file and install pre-commit

This commit is contained in:
Jean-Claude 2023-04-18 21:17:06 +02:00
parent a112c7f7a0
commit 969db33c95
Signed by: jeanclaude
GPG Key ID: 8A300F57CBB9F63E
2 changed files with 10 additions and 0 deletions

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

@ -0,0 +1,6 @@
repos:
- repo: https://github.com/doublify/pre-commit-rust
rev: master
hooks:
- id: fmt
- id: cargo-check

4
rustfmt.toml Normal file
View File

@ -0,0 +1,4 @@
comment_width = 100
format_code_in_doc_comments = true
imports_granularity = "Module"
wrap_comments = true