From 0553a78c041cfed4ab5d4ceb90916781c5a175bc Mon Sep 17 00:00:00 2001 From: Ming-Hung Tsai Date: Tue, 11 May 2021 17:18:21 +0800 Subject: [PATCH] Add pre-commit hooks --- .pre-commit-config.yaml | 13 +++++++++++++ 1 file changed, 13 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..b423e50 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,13 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.4.0 + hooks: + - id: check-merge-conflict + - id: end-of-file-fixer + - id: mixed-line-ending + - id: trailing-whitespace +- repo: https://github.com/doublify/pre-commit-rust + rev: master + hooks: + - id: fmt + - id: clippy