-
-
Notifications
You must be signed in to change notification settings - Fork 695
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
Update pyflakes to version 2.2.0 #884
Comments
How do we feel about string = (
f"First line with some {param} "
f"second line without params"
) If I remember correctly, the majority of our core devs are in favour of keeping the second EDIT: I also believe some of us feel strongly against using the walrus what-so-ever. |
Looks like the joined f-strings are taken care of, taking your snippet we only get an error about
I don't know about the walrus but it can be nice to use in some simple cases without sacrificing any readability. |
That's good to hear, thanks for the clarification. For the record, I'm not opposed to this. I'm just hoping to get a discussion started to see whether we're all collectively on board. I like the walrus myself, and I recently bumped pyflakes to |
Sorry, I did not properly read yesterday and didn't realize |
Good news is that |
Ah, looks like flake8 is incompatible with the newest pyflakes and the above missing placeholder error codes are wrong because of that, the only thing incompatible changes are the error codes which were fixed in this merge commit thatfixes it by simply updating a dict PyCQA/flake8@6efb15c Do we care about the error codes enough to delay this until a release? Couldn't find any hints on when that may be. |
Hmm, I'd probably lean towards just waiting on a proper |
Let's just wait for the flake8 3.8.0 release. The alpha is out and it doesn't make sense to add a bunch of manual dependency pins just to chase the walrus. |
flake8 3.8 is now released: https://pypi.org/project/flake8/3.8.0/ |
|
The new version introduces support for assignment expressions (changelog).
Currently when lint is ran with the expression in the code, pyflakes will crash flake8.
Updating the version fixes this but a
noqa
ignore is still necessary because pycodestyle did not yet receive an update and does not recognize the new syntax with a colon.The update will introduce these lint errors: https://paste.fuelrats.com/rotukasohe.txt
where
F999
s are f-strings with no expressions inside of them and theF821
s referring to this method definition's literals in the calls inside the typehintsbot/bot/cogs/moderation/management.py
Lines 49 to 56 in b44caed
The text was updated successfully, but these errors were encountered: