Skip to content

Commit

Permalink
Merge pull request #57 from tcezard/remove_minify
Browse files Browse the repository at this point in the history
Remove minify-html
  • Loading branch information
apriltuesday authored Sep 16, 2024
2 parents faee2c8 + db9cf03 commit 9a18cc1
Show file tree
Hide file tree
Showing 6 changed files with 1,421 additions and 25 deletions.
Binary file modified eva_sub_cli/etc/eva_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 2 additions & 6 deletions eva_sub_cli/report.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import base64
import os.path
import re

from jinja2 import Environment, FileSystemLoader

Expand Down Expand Up @@ -35,10 +36,5 @@ def generate_html_report(validation_results, validation_date, submission_dir, vc
vcf_fasta_analysis_mapping=vcf_fasta_analysis_mapping,
validation_results=validation_results
)
return re.sub('\s+\n', '\n', rendered_template)

try:
# minify-html is not included in conda installation currently
from minify_html import minify_html
return minify_html.minify(rendered_template, minify_js=True, remove_processing_instructions=True)
except ImportError:
return rendered_template
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
ebi_eva_common_pyutils==0.6.10
jinja2
jsonschema
minify_html==0.11.1
openpyxl
pyyaml
requests
Expand Down
463 changes: 457 additions & 6 deletions tests/resources/validation_reports/expected_report_metadata_json.html

Large diffs are not rendered by default.

475 changes: 469 additions & 6 deletions tests/resources/validation_reports/expected_report_metadata_xlsx.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 9a18cc1

Please sign in to comment.