pep8speaks
pep8speaks copied to clipboard
How to make it work with python3.8
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
.
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?
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 .
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 Hey, this issue still persists for me. Please take a look at this PR.
Huh, I see.
@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 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.
Same problem here: https://github.com/StingraySoftware/stingray/pull/630