arehmandev / jinja2-lint

Simple python script to lint jinja2 templates.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linter for jinja2

Every now and then, it's pretty useful to just have a cli tool that does the job. This does it.

Usage:

python j2-lint.py my-template.j2

It accepts multiple arguments so shell expansion and/or combining with find is no issue:

python j2-lint.py *.j2
find src -type f -name "*.j2" -exec python j2-lint.py '{}' +

About

Simple python script to lint jinja2 templates.

License:Other


Languages

Language:Python 100.0%