Skip pre-commit if virtualenv is not found

This commit is contained in:
Jan Tuomi
2017-11-26 00:10:46 +02:00
parent a519d51309
commit 9527e6de5f
2 changed files with 8 additions and 3 deletions
+7 -2
View File
@@ -1,9 +1,14 @@
. "VIRTUALENV_ACTIVATE"
if [ $? -ne 0 ]
then
echo "Failed to source virtualenv. Skipping pre-commit hook."
exit 0;
fi
set -e
PURPLE='\033[0;35m'
NC='\033[0m' # No Color
. "VIRTUALENV_ACTIVATE"
printf "${PURPLE}Running pre-commit tests.${NC}\n"
npm test
pycodestyle .
+1 -1
View File
@@ -81,7 +81,7 @@
{% if application.official_roles|length > 0 %}
<h5 style="padding-bottom: 1rem" class="card-subtitle mb-2 text-muted">{{ application.official_roles }}</h5>
{% endif %}
<p class="card-text">{{ application.text|linebreaks }}</p>
<p class="card-text">{{ application.text|linebreaks|urlize }}</p>
{% if application.comment_count > 0 %}
<a type="button" style="cursor: pointer" data-toggle="collapse" data-target="#collapse_{{ application.id }}" aria-expanded="false" aria-controls="collapse_{{ application.id }}">