mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-25 10:18:45 -06:00
@@ -2,8 +2,9 @@
|
||||
import sys
|
||||
|
||||
LANGUAGES = [
|
||||
'conda', 'docker', 'docker_image', 'fail', 'golang', 'node', 'pygrep',
|
||||
'python', 'python_venv', 'ruby', 'rust', 'script', 'swift', 'system',
|
||||
'conda', 'docker', 'docker_image', 'fail', 'golang', 'node', 'perl',
|
||||
'pygrep', 'python', 'python_venv', 'ruby', 'rust', 'script', 'swift',
|
||||
'system',
|
||||
]
|
||||
FIELDS = [
|
||||
'ENVIRONMENT_DIR', 'get_default_version', 'healthy', 'install_environment',
|
||||
|
||||
7
testing/resources/perl_hooks_repo/.gitignore
vendored
Normal file
7
testing/resources/perl_hooks_repo/.gitignore
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/MYMETA.json
|
||||
/MYMETA.yml
|
||||
/Makefile
|
||||
/PreCommitHello-*.tar.*
|
||||
/PreCommitHello-*/
|
||||
/blib/
|
||||
/pm_to_blib
|
||||
5
testing/resources/perl_hooks_repo/.pre-commit-hooks.yaml
Normal file
5
testing/resources/perl_hooks_repo/.pre-commit-hooks.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
- id: perl-hook
|
||||
name: perl example hook
|
||||
entry: pre-commit-perl-hello
|
||||
language: perl
|
||||
files: ''
|
||||
4
testing/resources/perl_hooks_repo/MANIFEST
Normal file
4
testing/resources/perl_hooks_repo/MANIFEST
Normal file
@@ -0,0 +1,4 @@
|
||||
MANIFEST
|
||||
Makefile.PL
|
||||
bin/pre-commit-perl-hello
|
||||
lib/PreCommitHello.pm
|
||||
10
testing/resources/perl_hooks_repo/Makefile.PL
Normal file
10
testing/resources/perl_hooks_repo/Makefile.PL
Normal file
@@ -0,0 +1,10 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use ExtUtils::MakeMaker;
|
||||
|
||||
WriteMakefile(
|
||||
NAME => "PreCommitHello",
|
||||
VERSION_FROM => "lib/PreCommitHello.pm",
|
||||
EXE_FILES => [qw(bin/pre-commit-perl-hello)],
|
||||
);
|
||||
7
testing/resources/perl_hooks_repo/bin/pre-commit-perl-hello
Executable file
7
testing/resources/perl_hooks_repo/bin/pre-commit-perl-hello
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use PreCommitHello;
|
||||
|
||||
PreCommitHello::hello();
|
||||
12
testing/resources/perl_hooks_repo/lib/PreCommitHello.pm
Normal file
12
testing/resources/perl_hooks_repo/lib/PreCommitHello.pm
Normal file
@@ -0,0 +1,12 @@
|
||||
package PreCommitHello;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
our $VERSION = "0.1.0";
|
||||
|
||||
sub hello {
|
||||
print "Hello from perl-commit Perl!\n";
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user