Commit f99d0bd8 authored by Michal Čihař's avatar Michal Čihař

Color logging

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent e9c94eb7
#!/bin/sh #!/bin/sh
log() {
tput setf 6
echo "Running $1..."
tput sgr0
}
# Linter for our code # Linter for our code
./scripts/generate-locales ./scripts/generate-locales
echo pep8 log pep8
pep8 --exclude south_migrations,migrations weblate openshift pep8 --exclude south_migrations,migrations weblate openshift
pep_ret=$? pep_ret=$?
echo pylint log pylint
pylint --rcfile=pylint.rc weblate pylint --rcfile=pylint.rc weblate
pylint_ret=$? pylint_ret=$?
echo pyflakes log pyflakes
pyflakes `find . -name '*.py' -not -name 'settings_test_*.py' -not -name 'settings_test.py' -not -name 'settings_openshift.py'` pyflakes `find . -name '*.py' -not -name 'settings_test_*.py' -not -name 'settings_test.py' -not -name 'settings_openshift.py'`
pyflakes_ret=$? pyflakes_ret=$?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment