Skip to content

A plugin for flake8 that detects and reports invalid escape sequences

License

Notifications You must be signed in to change notification settings

5j9/flake8-invalid-escape-sequences

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://travis-ci.org/5j9/flake8-invalid-escape-sequences.svg?branch=master

flake8-invalid-escape-sequences

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.

Introduction

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 \[

Installation

pip install flake8-invalid-escape-sequences

Should work with all officially supported Python versions, including Python 2.7.

About

A plugin for flake8 that detects and reports invalid escape sequences

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published