Skip pre-commit if virtualenv is not found
This commit is contained in:
@@ -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 .
|
||||
|
||||
@@ -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 }}">
|
||||
|
||||
Reference in New Issue
Block a user