From 024ba4f4b9850cc8071749bb65f6488b91ccd7c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ville=20Skytt=C3=A4?= Date: Wed, 19 Feb 2020 07:41:27 +0200 Subject: [PATCH] Add pre-commit hook config --- .pre-commit-hooks.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 00000000..d0cdce58 --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,8 @@ +- id: perltidy + name: perltidy + description: Run the perltidy source code formatter on Perl source files + minimum_pre_commit_version: 2.1.0 + entry: perltidy --nostandard-output --backup-and-modify-in-place + args: [--standard-error-output, --backup-file-extension=/] + language: perl + types: [perl] -- 2.39.5