Git Product home page Git Product logo

flake8-invalid-escape-sequences's Introduction

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.

flake8-invalid-escape-sequences's People

Contributors

5j9 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flake8-invalid-escape-sequences's Issues

pycodestyle 2.4

pycodestyle 2.4 now includes this rule.

And the next version of flake8 will thus include this rule.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.