weblate/ci/run-lint
Michal Čihař 2ff3e6e4a1 Fix lint script exit
Signed-off-by: Michal Čihař <michal@cihar.com>
2019-05-16 21:12:26 +02:00

20 lines
280 B
Bash
Executable file
Vendored

#!/bin/sh
log() {
tput setf 6
echo "Running $1..."
tput sgr0
}
# Linter for our code
./scripts/generate-locales
log flake8
flake8
pep_ret=$?
exit $pep_ret
log pylint
pylint --rcfile=.pylintrc weblate openshift *.py
pylint_ret=$?
exit $(($pep_ret + $pyflake8_ret))