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
1 changed files with 6 additions and 13 deletions

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(