Projet

Général

Profil

Révision f007901b

IDf007901b64a8f900964e3e61e1f24f4898824f81
Parent 08f196eb
Enfant e33c35ff

Ajouté par Stig Sandbeck Mathisen il y a environ 11 ans

Check python scirpts with "py_compile"

- leaves a mess behind, but works

Voir les différences:

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