equal
deleted
inserted
replaced
75 |
75 |
76 echo "DONE" |
76 echo "DONE" |
77 echo "" |
77 echo "" |
78 } |
78 } |
79 |
79 |
|
80 localization_checks() |
|
81 { |
|
82 echo "Check correct localization formats" |
|
83 xgettext --version |
|
84 |
|
85 for i in $py_files; do |
|
86 xgettext -s --language=Python --package-name Beremiz --output=/tmp/m.pot $i 2>&1 | grep 'warning' |
|
87 if [ $? -eq 0 ]; then |
|
88 echo "Syntax error in $i" |
|
89 set_exit_error |
|
90 fi |
|
91 done |
|
92 echo "DONE" |
|
93 echo "" |
|
94 } |
80 |
95 |
81 # pep8 was renamed to pycodestyle |
96 # pep8 was renamed to pycodestyle |
82 # detect existed version |
97 # detect existed version |
83 pep8_detect() |
98 pep8_detect() |
84 { |
99 { |
417 main() |
432 main() |
418 { |
433 { |
419 get_files_to_check $@ |
434 get_files_to_check $@ |
420 python3_compile_checks |
435 python3_compile_checks |
421 compile_checks |
436 compile_checks |
|
437 localization_checks |
422 pep8_checks_default |
438 pep8_checks_default |
423 # pep8_checks_selected |
439 # pep8_checks_selected |
424 |
440 |
425 # flake8_checks |
441 # flake8_checks |
426 pylint_checks |
442 pylint_checks |