Révision f007901b
Check python scirpts with "py_compile"
- leaves a mess behind, but works
| t/test.t | ||
|---|---|---|
| 95 | 95 |
); |
| 96 | 96 |
} |
| 97 | 97 |
elsif ( $interpreter =~ m{python} ) {
|
| 98 |
SKIP: {
|
|
| 99 |
skip 'need better syntax check for python', 1; |
|
| 100 |
run_check( |
|
| 101 |
{ command => [
|
|
| 102 |
'pylint', '--rcfile=/dev/null', |
|
| 103 |
'--errors-only', '--report=no', |
|
| 104 |
$file |
|
| 105 |
], |
|
| 106 |
description => 'python syntax check', |
|
| 107 |
filename => $filename |
|
| 108 |
} |
|
| 109 |
); |
|
| 110 |
} |
|
| 98 |
run_check( |
|
| 99 |
{ command => [ 'python', '-m', 'py_compile', $file ],
|
|
| 100 |
description => 'python compile', |
|
| 101 |
filename => $filename |
|
| 102 |
} |
|
| 103 |
); |
|
| 111 | 104 |
} |
| 112 | 105 |
elsif ( $interpreter =~ m{php} ) {
|
| 113 | 106 |
run_check( |
Formats disponibles : Unified diff