lordmauve / flake8-html

Generate HTML reports of flake8 violations
Other
51 stars 17 forks source link

flake8-html no longer works with Jinja 2 #23

Closed jontwo closed 2 years ago

jontwo commented 2 years ago

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

sbor23 commented 2 years ago

Would you mind making a release with the pinned versions?