weblate/ci/run-lint
Michal Čihař 9626b91488 Avoid scanning yarn files
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-25 15:34:21 +02:00

20 lines
536 B
Bash
Executable file
Vendored

#!/bin/sh
log() {
tput setf 6
echo "Running $1..."
tput sgr0
}
# Linter for our code
./scripts/generate-locales
log pep8
pep8 --exclude migrations weblate openshift examples *.py
pep_ret=$?
log pyflakes
pyflakes `find . -name '*.py' -not -name 'settings_test_*.py' -not -name 'settings_test.py' -not -name 'settings_openshift.py' -not -path './data/*' -not -path './scripts/yarn/*'`
pyflakes_ret=$?
log pylint
pylint --rcfile=.pylintrc weblate openshift *.py
pylint_ret=$?
exit $(($pep_ret + $pylint_ret + $pyflakes_ret))