]> git.donarmstrong.com Git - perltidy.git/commitdiff
Add pre-commit hook config
authorVille Skyttä <ville.skytta@iki.fi>
Wed, 19 Feb 2020 05:41:27 +0000 (07:41 +0200)
committerVille Skyttä <ville.skytta@iki.fi>
Wed, 19 Feb 2020 06:54:14 +0000 (08:54 +0200)
.pre-commit-hooks.yaml [new file with mode: 0644]

diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml
new file mode 100644 (file)
index 0000000..d0cdce5
--- /dev/null
@@ -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]