1
0
Fork 0
mirror of https://github.com/imjasonh/testscript-rs synced 2026-07-18 14:46:25 +00:00

add pre-commit config (#15)

Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
Jason Hall 2025-09-26 19:57:51 -04:00 committed by GitHub
parent d5a72d21ae
commit 213d584878
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

11
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,11 @@
repos:
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
name: Rust formatter
- id: clippy
name: Rust linter
args: ['--all-targets', '--', '-D', 'warnings']
- id: cargo-check
name: Rust compiler check