Closed jontwo closed 2 years ago
Running flake8 with flake8-html and Jinja 2 version 3.1.0+ gives the following error: flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "html" due to cannot import name 'Markup' from 'jinja2'
flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "html" due to cannot import name 'Markup' from 'jinja2'
Apparently that import is deprecated and you need to use from markupsafe import Markup. See https://github.com/pallets/jinja/issues/1628
from markupsafe import Markup
Would you mind making a release with the pinned versions?
Description
Running flake8 with flake8-html and Jinja 2 version 3.1.0+ gives the following error:
flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "html" due to cannot import name 'Markup' from 'jinja2'
Apparently that import is deprecated and you need to use
from markupsafe import Markup
. See https://github.com/pallets/jinja/issues/1628