mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-05-05 07:41:44 +08:00
20 lines
506 B
Bash
Executable file
20 lines
506 B
Bash
Executable file
#!/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/*'`
|
|
pyflakes_ret=$?
|
|
log pylint
|
|
pylint --rcfile=.pylintrc weblate openshift *.py
|
|
pylint_ret=$?
|
|
|
|
exit $(($pep_ret + $pylint_ret + $pyflakes_ret))
|