From 6c75155baf7c1cd142d520e2b135baf37a24bfd5 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 3 Aug 2020 18:16:43 -0400 Subject: [PATCH] style: add pre-commit --- .pre-commit-config.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 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..3b9baee --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,21 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.1.0 + hooks: + - id: check-added-large-files + - id: check-case-conflict + - id: check-merge-conflict + - id: check-symlinks + - id: check-yaml + - id: debug-statements + - id: end-of-file-fixer + - id: mixed-line-ending + - id: requirements-txt-fixer + - id: trailing-whitespace + - id: fix-encoding-pragma + +- repo: https://github.com/cheshirekow/cmake-format-precommit + rev: v0.6.11 + hooks: + - id: cmake-format + additional_dependencies: [pyyaml]