From 2cc47d590459acd565e91acf23841773c4e752f6 Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 23 Jul 2025 20:12:11 -0500 Subject: [PATCH] feat: add pre-comit configuration --- .pre-commit-config.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..6365a9d --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,22 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-added-large-files + - id: check-merge-conflict + - id: check-case-conflict + - id: check-toml + - id: check-yaml + - id: forbid-submodules + - id: mixed-line-ending + + - repo: local + hooks: + - id: cargo-fmt + name: cargo fmt + entry: cargo fmt --all -- + language: system + types: [rust] + pass_filenames: false