A plugin for flake8 (v3+) that detects and reports invalid escape sequences.
Note: This plugin is not required anymore if you've upgraded to pycodestyle 2.4.0
(released Apr 10, 2018). pycodestyle
now issues W605
warning for invalid escape sequences.
Invalid escape sequences became deprecated in Python 3.6 and will be a SyntaxError in the future.
This plugin finds those invalid sequences and reports them. Here is a sample output:
test_case.py:5:12: IES: invalid escape sequence \[
pip install flake8-invalid-escape-sequences
Should work with all officially supported Python versions, including Python 2.7.