ambv / flake8-mypy

A plugin for flake8 integrating Mypy.
MIT License
101 stars 17 forks source link

Escape file names before them passing into `MYPY_ERROR_TEMPLATE`. #11

Open mamikonyan opened 6 years ago

mamikonyan commented 6 years ago

Please add a call to re.escape() like so:

MYPY_ERROR_TEMPLATE.format(filename=re.escape(re_filename)),
ambv commented 6 years ago

Good call! Could you make a pull request to that effect? I'll happily accept it.