From: Ville Skyttä Date: Wed, 19 Feb 2020 05:41:27 +0000 (+0200) Subject: Add pre-commit hook config X-Git-Tag: 20200619~136^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=024ba4f4b9850cc8071749bb65f6488b91ccd7c2;p=perltidy.git Add pre-commit hook config --- 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]