pep8speaks icon indicating copy to clipboard operation
pep8speaks copied to clipboard

How to make it work with python3.8

Open Haider8 opened this issue 4 years ago • 8 comments

I am using python3.8.2 and it is continuously giving me syntax errors. How can I make it work with python3.8? I am using flake8.

Haider8 avatar May 21 '20 21:05 Haider8

Hey! I don't understand your question. PEP8Speaks (flake8 as linter) should work on any Python version. PEP8Speaks does not have its own linter. Are there any unexpected errors which flake8 does not raise locally for you?

OrkoHunter avatar May 22 '20 00:05 OrkoHunter

Thanks for your reply! It gives me syntax error when I use walrus operator. Is there any way I can specify the the python version in pep8speaks config file?

On Fri, May 22, 2020, 6:15 AM Himanshu Mishra [email protected] wrote:

Hey! I don't understand your question. PEP8Speaks (flake8 as linter) should work on any Python version. PEP8Speaks does not have its own linter. Are there any unexpected errors which flake8 does not raise locally for you?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OrkoHunter/pep8speaks/issues/173#issuecomment-632417524, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKKLEUACB6WL23BLWUGMDYLRSXDKLANCNFSM4NHGCKXQ .

Haider8 avatar May 22 '20 07:05 Haider8

Oh interesting! Looks like I will have to update the flake8 and pycodestyle versions that I am using. May I ask you to create a PR? :)

OrkoHunter avatar May 23 '20 00:05 OrkoHunter

@OrkoHunter Hey, this issue still persists for me. Please take a look at this PR.

Haider8 avatar Jun 24 '20 18:06 Haider8

Huh, I see.

OrkoHunter avatar Jun 25 '20 07:06 OrkoHunter

@OrkoHunter Hi, I get the already mentioned problem with the walrus operator in this PR

EDIT: I exchanged the affected lines in the PR because they got obsolete, but you can still see it in the edit history of the pep8speaks comment if that helps

vhirtham avatar Jul 15 '21 14:07 vhirtham

@vhirtham I wonder if you use pycodestyle instead of flake8 as your linter, the issue goes away? We might need to update some versions of the linters, so that newer versions of Python are supported well.

OrkoHunter avatar Jul 15 '21 15:07 OrkoHunter

Same problem here: https://github.com/StingraySoftware/stingray/pull/630

matteobachetti avatar Feb 16 '22 08:02 matteobachetti