Skip to content

Commit 15aacc9

Browse files
committed
test: move perltidy to pre-commit, run with --converge
1 parent e908d02 commit 15aacc9

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

.perltidyrc

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
--paren-tightness=2
44
--cuddled-else
55
--warning-output
6+
--converge

.pre-commit-config.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,9 @@ repos:
3434
types: [text]
3535
files: ^(bash_completion|completions/.+|test/run*|.+\.sh(\.in)?)$
3636
exclude: completions/Makefile.*$
37+
- repo: https://github.com/perltidy/perltidy
38+
rev: cbb4a687dd331db69219599d84d527397402efdd
39+
hooks:
40+
- id: perltidy
41+
types: [text]
42+
files: ^(helpers/perl|.+\.p[ml])$

test/docker/docker-script.sh

-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
if [ $DIST = tools ]; then
44
rc=0
55
perlcritic helpers/perl; rc=$((rc+$?))
6-
perltidy -nst -nse helpers/perl; rc=$((rc+$?))
7-
if [ -e helpers/perl.ERR ]; then
8-
cat helpers/perl.ERR
9-
rc=$((rc+1))
10-
fi
116
pre-commit run --all-files; rc=$((rc+$?))
127
exit $rc
138
fi
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package BashCompletionModule;
2+
use strict;
3+
use warnings;
4+
1;

test/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
black==19.10b0;python_version>="3.6"
22
pexpect>=4
3-
pre-commit
3+
pre-commit>=2.1.0
44
pytest>=3.6
55
pytest-xdist
66
typing;python_version<"3.5"

0 commit comments

Comments
 (0)