Liquid syntax check test and hook | Generated by AI

Home 2026.06

Done. Here’s the summary:

What was added:

  1. tests/workflow/test_liquid_syntax.py — scans _posts/ and notes/ for bare {% %} outside of ... blocks. Reports file path, line number, and content for each violation.

  2. .pre-commit-config.yaml — new liquid-syntax-check hook that runs the test on every commit (always_run: true).

How it works:

Also fixed: notes/2026-06-14-liquid-tag-build-fix-en.md had 3 bare {% %} — escaped with inline raw/endraw.

Note: bandit has a pre-existing false positive (B608 on scripts/recommendation/api_utils.py) unrelated to this change. You may want to add B608 to the skip list.


Generated by AI. Curating and sharing still takes effort. If you find it useful, feel free to donate. WeChat: @lzwjavaWeChat QR · X: @lzwjava · Say hi 👋

Back Donate