Jinja Inspection within Python files
Answered
Stay with me on this one...
I've got a python utility which is generating python modules (how meta!).
Rather than generate the modules programmatically, a template language (like Jinja2) would be invaluable. The question is: how do I get the Jinja inspection to work on a python file? I've looked through all of the available template file types and "Python Stub" seems to be the only file type that's close.
example:
class Classy(object):
{% for m in my_methods %}
do_{{m}}(self, args):
pass
{% endfor %}
Please sign in to leave a comment.
Unfortunately, Pycharm provides Jinja inspection only in HTML files, please feel free to file feature request to Pycharm issue tracker: https://youtrack.jetbrains.com/issues/PY.