You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried out a new debian package qc tool which runs pyflakes, and it reported many issues.
I filtered out a bunch of false positives, I think the remaining should be fixed, even though not all are real errors:
The get_ipython and _ip reports are all almost certainly incorrect, because these are names we inject into builtins. The kernelstarter file is an incomplete implementation of the nanny process watching engines and isn't yet used (and probably shouldn't be in the repo). The same goes for zmq.frontend and zmq.completer.ClientCompleter, which is really example code more than anything, and not used anywhere. I'll check out the others.
By the way, here's a bash function that runs pyflakes on a dir, excluding all of the unhelpful/uninteresting stuff (including various names we inject into the namespace):
flakes(){
pyflakes $1| grep -v "never used"| grep -v "undefined name 'get_ipython'"| grep -v "undefined name '_ip'"| grep -v "undefined name '__IPYTHON__'"| grep -v "undefined name 'get_config'"| grep -v "undefined name 'load_subconfig'"| grep -v "but unused"| grep -v ": redefinition"| grep -v "^IPython/quarantine"| grep -v "^IPython/deathrow"| grep -v "unable to detect undefined names"
}
See PR #1502 for what should be a fix of all the real issues revealed here.
small changes in response to pyflakes pass
Only significant change: removes incomplete kernelstarter file, which shouldn't have been in the repo at all.
closesipython#1499
I tried out a new debian package qc tool which runs pyflakes, and it reported many issues.
I filtered out a bunch of false positives, I think the remaining should be fixed, even though not all are real errors:
Ran on today's daily build (~3912ea7cf62)
For the vim users I highly recommend vim's pyflakes plugin, it really helps a lot and is very fast.
The text was updated successfully, but these errors were encountered: