* Allow bower install of frontend components as root. Needed for frontend development in docker since everything runs as root in the docker image. * Improve development workflow in docker * Use LANG=C.UTF-8 in tox. Fixes installation of libraries with UTF-8 in it's readme. * Install mysqlclient psycopg2 uvloop after requirements_all.txt again, but with a --no-cache-dir this time. Allows bootstrap_frontend to be executed in a different path like the other scripts.
21 lines
572 B
Bash
Executable file
21 lines
572 B
Bash
Executable file
#!/bin/sh
|
|
# Execute lint to spot code mistakes.
|
|
|
|
if [ "$1" = "--changed" ]; then
|
|
export files="`git diff upstream/dev --name-only | grep -e '\.py$'`"
|
|
echo "================================================="
|
|
echo "FILES CHANGED (git diff upstream/dev --name-only)"
|
|
echo "================================================="
|
|
echo $files
|
|
echo "================"
|
|
echo "LINT with flake8"
|
|
echo "================"
|
|
flake8 --doctests $files
|
|
echo "================"
|
|
echo "LINT with pylint"
|
|
echo "================"
|
|
pylint $files
|
|
echo
|
|
else
|
|
tox -e lint
|
|
fi
|