diff --git a/.github/workflows/hypha-ci.yml b/.github/workflows/hypha-ci.yml index cf1cf594f6..9ae9181e50 100644 --- a/.github/workflows/hypha-ci.yml +++ b/.github/workflows/hypha-ci.yml @@ -71,9 +71,13 @@ jobs: with: python-version: ${{ env.PYTHON_VERSION }} - name: Install python dependencies - run: pip install `grep "ruff" requirements-dev.txt` - - name: Run python linting + run: pip install `grep -E "ruff|djhtml|black" requirements-dev.txt` + - name: Run ruff run: ruff --format github . + - name: Run black + run: black . --check + - name: Run djhtml + run: djhtml hypha/ --check test-be: runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index 3b01ed4e7c..0f28276fb3 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,7 @@ fmt: python -m ruff --fix . python -m black . npx prettier . --write + djhtml hypha/ .PHONY: cov-html cov-html: @@ -52,9 +53,10 @@ lint: @echo "Checking python code style with ruff" ruff . black . --check + @echo "Checking html file indendation." + djhtml hypha/ --check @echo "Checking js and css code style." npm run lint - npx prettier . --check .PHONY: lint-fix diff --git a/hypha/apply/templates/forms/includes/multi_input_field.html b/hypha/apply/templates/forms/includes/multi_input_field.html index affdfbfeb6..75e4657cba 100644 --- a/hypha/apply/templates/forms/includes/multi_input_field.html +++ b/hypha/apply/templates/forms/includes/multi_input_field.html @@ -1,12 +1,17 @@ {% load heroicons %} -
1 %} data-hidden="{% if not show_all_group_fields %}true{% else %}false{% endif %}"{% endif %}" data-multi-field-for="{{ field.field.multi_input_id }}"> +
1 %} data-hidden="{% if not show_all_group_fields %}true{% else %}false{% endif %}"{% endif %} + data-multi-field-for="{{ field.field.multi_input_id }}" +> {{ field }} {% if field.errors %}
{{ field.errors.as_text|linebreaksbr }}
{% endif %}
{% if field.field.multi_input_add_button %} -