PyCQA / pycodestyle

Simple Python style checker in one Python file

Home Page:https://pycodestyle.pycqa.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

W605: false positive

someonesdad1 opened this issue · comments

# pycodestyle 2.8.0 gives W605 on this docstring and string
class Dummy:
    '''d.rmr(r"\.jpg$", ic=True)'''
    pass
s = 'd.rmr(r"\.jpg$", ic=True)'

This is a condensation of some testing on some of my code. These are legitimate raw strings for re.compile() and shouldn't exhibit a warning.

run your code with python -Werror and you'll find you are incorrect -- also search the issue tracker next time

duplicate of #975 #958 #902 #854 #822 #814 #766