mirror of
https://github.com/harivansh-afk/deskctl.git
synced 2026-04-20 16:05:15 +00:00
pre-commit hook
This commit is contained in:
parent
372315b6ed
commit
e9784a7f94
1 changed files with 15 additions and 0 deletions
15
.pre-commit-config.yaml
Normal file
15
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
repos:
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: rustfmt
|
||||||
|
name: rustfmt
|
||||||
|
entry: cargo fmt --
|
||||||
|
language: system
|
||||||
|
files: \.rs$
|
||||||
|
pass_filenames: true
|
||||||
|
- id: site-format-check
|
||||||
|
name: site format check
|
||||||
|
entry: make site-format-check
|
||||||
|
language: system
|
||||||
|
files: ^site/
|
||||||
|
pass_filenames: false
|
||||||
Loading…
Add table
Add a link
Reference in a new issue