summaryrefslogtreecommitdiff
path: root/.git-hooks
diff options
context:
space:
mode:
authorThorsten Behrens <Thorsten.Behrens@CIB.de>2018-10-03 00:42:20 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-10-03 10:39:39 +0200
commit9d11ab9295b479e8d817e5dd37337b4fb8af7581 (patch)
treea1d7274933b9fe33e524d542df48f64ac5155a27 /.git-hooks
parent36befb3aca96907a14e71e82497dbb8f03ead5ab (diff)
Add Python files to pre-commit hook checks
Change-Id: Ie5a631abe25a25bab9e74b353994f0788fe3dd06 Reviewed-on: https://gerrit.libreoffice.org/61279 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to '.git-hooks')
-rwxr-xr-x.git-hooks/pre-commit4
1 files changed, 2 insertions, 2 deletions
diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit
index 5ab539466827..7ef34809165a 100755
--- a/.git-hooks/pre-commit
+++ b/.git-hooks/pre-commit
@@ -15,8 +15,8 @@ $ENV{LC_ALL} = "C";
sub check_whitespaces($)
{
my ($h) = @_;
- my $src_limited = "c|cpp|cxx|h|hrc|hxx|idl|inl|java|swift|map|MK|pmk|pl|pm|sdi|sh|src|tab|ui|xcu|xml|xsl";
- my $src_full = "c|cpp|cxx|h|hrc|hxx|idl|inl|java|swift|map|mk|MK|pmk|pl|pm|sdi|sh|src|tab|ui|xcu|xml|xsl";
+ my $src_limited = "c|cpp|cxx|h|hrc|hxx|idl|inl|java|swift|map|MK|pmk|pl|pm|sdi|sh|src|tab|ui|xcu|xml|xsl|py";
+ my $src_full = "c|cpp|cxx|h|hrc|hxx|idl|inl|java|swift|map|mk|MK|pmk|pl|pm|sdi|sh|src|tab|ui|xcu|xml|xsl|py";
my $found_bad = 0;
my $filename;