From 4422ac392ce5530df871c3c8beccb94719fd9ca3 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Sat, 28 Oct 2023 10:05:20 -0400 Subject: [PATCH] FIX: Curlylint --- .pre-commit-config.yaml | 8 ++++++++ mne/html_templates/report/footer.html.jinja | 8 ++++++++ mne/html_templates/report/header.html.jinja | 5 +++++ mne/html_templates/report/toc.html.jinja | 6 ++++++ mne/html_templates/repr/evoked.html.jinja | 1 + mne/html_templates/repr/info.html.jinja | 2 +- pyproject.toml | 13 +++++++++++++ 7 files changed, 42 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 98d8db9db03..0dee54fb925 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,3 +40,11 @@ repos: hooks: - id: yamllint args: [--strict, -c, .yamllint.yml] + + # curlylint + - repo: https://github.com/thibaudcolas/curlylint + rev: v0.13.1 + hooks: + - id: curlylint + files: \.jinja$ + args: ["--quiet"] diff --git a/mne/html_templates/report/footer.html.jinja b/mne/html_templates/report/footer.html.jinja index 9733155d943..27acb98b45f 100644 --- a/mne/html_templates/report/footer.html.jinja +++ b/mne/html_templates/report/footer.html.jinja @@ -1,3 +1,11 @@ +{# Complete tags for curlylint #} +{{ if 0 }} + + +
+
+{{ endif }} +