equal
deleted
inserted
replaced
49 fi |
49 fi |
50 done |
50 done |
51 echo "DONE" |
51 echo "DONE" |
52 echo "" |
52 echo "" |
53 } |
53 } |
|
54 |
|
55 |
|
56 python3_compile_checks() |
|
57 { |
|
58 echo "Syntax checking using python3 ..." |
|
59 python3 --version |
|
60 |
|
61 # remove compiled Python files |
|
62 find . -name '*.pyc' -exec rm -f {} \; |
|
63 |
|
64 for i in $py_files; do |
|
65 # echo $i |
|
66 python3 -m py_compile $i |
|
67 if [ $? -ne 0 ]; then |
|
68 echo "Syntax error in $i" |
|
69 set_exit_error |
|
70 fi |
|
71 done |
|
72 |
|
73 # remove compiled Python files |
|
74 find . -name '*.pyc' -exec rm -f {} \; |
|
75 |
|
76 echo "DONE" |
|
77 echo "" |
|
78 } |
|
79 |
54 |
80 |
55 # pep8 was renamed to pycodestyle |
81 # pep8 was renamed to pycodestyle |
56 # detect existed version |
82 # detect existed version |
57 pep8_detect() |
83 pep8_detect() |
58 { |
84 { |
388 } |
414 } |
389 |
415 |
390 main() |
416 main() |
391 { |
417 { |
392 get_files_to_check $@ |
418 get_files_to_check $@ |
|
419 python3_compile_checks |
393 compile_checks |
420 compile_checks |
394 pep8_checks_default |
421 pep8_checks_default |
395 # pep8_checks_selected |
422 # pep8_checks_selected |
396 |
423 |
397 # flake8_checks |
424 # flake8_checks |