2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Check python scirpts with "py_compile"

- leaves a mess behind, but works
This commit is contained in:
Stig Sandbeck Mathisen 2014-10-05 11:24:14 +02:00
parent 08f196eb10
commit f007901b64

View File

@ -95,19 +95,12 @@ sub process_file {
);
}
elsif ( $interpreter =~ m{python} ) {
SKIP: {
skip 'need better syntax check for python', 1;
run_check(
{ command => [
'pylint', '--rcfile=/dev/null',
'--errors-only', '--report=no',
$file
],
description => 'python syntax check',
filename => $filename
}
);
}
run_check(
{ command => [ 'python', '-m', 'py_compile', $file ],
description => 'python compile',
filename => $filename
}
);
}
elsif ( $interpreter =~ m{php} ) {
run_check(