From 2d3028a60544c2139354bc1f4b9cbfffcd1772f2 Mon Sep 17 00:00:00 2001 From: Arthur Nieuwland Date: Wed, 14 Oct 2020 17:47:06 +0200 Subject: [PATCH] Added pre-commit configuration --- .pre-commit-config.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..f69fd32 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,28 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-added-large-files + - id: check-merge-conflict + - id: check-case-conflict + - id: end-of-file-fixer + - id: mixed-line-ending + - id: trailing-whitespace + - id: check-yaml + - id: check-json + - id: check-toml + - id: check-xml + - id: pretty-format-json + args: [--autofix] +- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks + rev: master + hooks: + - id: pretty-format-yaml + args: [--autofix] + - id: pretty-format-toml + args: [--autofix] +- repo: http://github.com/doublify/pre-commit-rust + rev: master + hooks: + - id: fmt + - id: cargo-check