Add pre-commit-config, run pre-commit on all files

This commit is contained in:
reo 2025-09-23 21:11:09 +03:00
parent 50d07ffea5
commit 59963cdec1
8 changed files with 18 additions and 7 deletions

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

@ -0,0 +1,11 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
files: "\\.rs$"
- id: end-of-file-fixer
files: "\\.rs$"
- id: mixed-line-ending
args: [--fix=lf]
files: "\\.rs$"