Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

w605 error #579

Closed
g-i-o-r-g-i-o opened this issue Sep 20, 2020 · 8 comments
Closed

w605 error #579

g-i-o-r-g-i-o opened this issue Sep 20, 2020 · 8 comments

Comments

@g-i-o-r-g-i-o
Copy link

Please describe how you installed Flake8

$ pip install --user flake8

Please describe the problem or feature

I'm using flake8 with coc.nvim inside vim8.2

flake8 shows the w605 error for indentation problems inside comments. The comment can be made with ''' or with #, it shows the error in any casel.

How to reproduce the problem

save a file with extension .py and with this comment

print()



'''
classe \s
<r>[\s]</r>
# 1 condizione\.
# 1 condizione.{1,1}\.

'''
@asottile
Copy link
Member

pyflakes doesn't have W* error codes, you're looking for pycodestyle

but either way your issue is invalid, you want a raw string (prefixed with a r). if you're confused, search around for your error code

@g-i-o-r-g-i-o
Copy link
Author

g-i-o-r-g-i-o commented Sep 20, 2020 via email

@asottile
Copy link
Member

because in future python versions it will be a syntax error, you can enable the warning ahead of time yourself if you'd like:

$ python3.8 -Werror t.py
  File "t.py", line 5
    '''
    ^
SyntaxError: invalid escape sequence \s

If you'd searched you would have found all of these issues telling you the same thing:

and this was just from putting W605 into the search box, there's plenty more that can explain your problem. please do some research as I've asked you to several times now

@g-i-o-r-g-i-o
Copy link
Author

g-i-o-r-g-i-o commented Sep 20, 2020 via email

@asottile
Copy link
Member

that's not a comment, that's a string

@g-i-o-r-g-i-o
Copy link
Author

g-i-o-r-g-i-o commented Sep 20, 2020 via email

@asottile
Copy link
Member

$ cat t.py 
# \n\o \i\t \d\o\e\s\n\'\t
$ flake8 t.py 
$

@PyCQA PyCQA locked as resolved and limited conversation to collaborators Sep 20, 2020
@sigmavirus24
Copy link
Member

@GianniGi calling people crazy is wildly inappropriate. I've locked this because you've not put the effort into finding the appropriate issue tracker and you're being offensive.

You mentioned elsewhere you were using Flake8, you can disable W605 and there are docs for that. Please read those.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants