pyflakes-bot
pyflakes-bot
*Original report by [tagrain](https://launchpad.net/~tagrain) on [Launchpad](https://bugs.launchpad.net/bugs/1675153):* ------------------------------------ *Please describe how you installed Flake8* Example: ``` python3 -m venv ~/.virtualenvs/flake8 workon flake8 pip install -U pip setuptools wheel pip install flake8...
*Original report by [fawio](https://launchpad.net/~fawio) on [Launchpad](https://bugs.launchpad.net/bugs/1325966):* ------------------------------------ Hi, As far as I know, bug 872503 (#142) was meant to fix the issue of code using locals() not being recognized as...
*Original report by [asmeurer](https://launchpad.net/~asmeurer) (@asmeurer?) on [Launchpad](https://bugs.launchpad.net/bugs/1590549):* ------------------------------------ This is perhaps a bit obscure, but here's a class of syntax errors that aren't caught by pyflakes ``` $ cat test.py...
*Original report by [jayvdb](https://launchpad.net/~jayvdb) (@jayvdb?) on [Launchpad](https://bugs.launchpad.net/bugs/1507827):* ------------------------------------ Running current pyflakes on astroid results in maximum recursion depth exceeded on a test module. https://bitbucket.org/logilab/astroid/src/6d4e198bdc7091f36c2c24d911c5ee92b64847c2/astroid/tests/testdata/python2/data/joined_strings.py ``` $ pyflakes astroid/tests/testdata/python2/data/joined_strings.py Traceback (most...
*Original report by [toikarin](https://launchpad.net/~toikarin) (@toikarin?) on [Launchpad](https://bugs.launchpad.net/bugs/1669713):* ------------------------------------ ``` $ cat pyflakes-test.py try: raise Exception("test") except Exception as e: print(e) x = lambda: e print(x) print(x()) $ pyflakes --version 1.5.0...
*Original report by [lelegaifax](https://launchpad.net/~lelegaifax) on [Launchpad](https://bugs.launchpad.net/bugs/1675659):* ------------------------------------ Consider the following script: ```python import bar class Foo: def bar(self): pass ``` Pyflakes emits: ``` $ pyflakes foo.py foo.py:1: 'bar' imported but...
*Original report by [scoutoss](https://launchpad.net/~scoutoss) on [Launchpad](https://bugs.launchpad.net/bugs/1523001):* ------------------------------------ Working with some NumPy code recently, I accidentally wrote this: ``` out[mask] == NaN # This should have been a single `=`, not...
*Original report by [asmeurer](https://launchpad.net/~asmeurer) (@asmeurer?) on [Launchpad](https://bugs.launchpad.net/bugs/1178807):* ------------------------------------ test.py: ```python import sys import sys def func(): """ A docstring >>> import sys >>> sys.path """ return 1 ``` The pyflakes...
*Original report by [asmeurer](https://launchpad.net/~asmeurer) (@asmeurer?) on [Launchpad](https://bugs.launchpad.net/bugs/1515396):* ------------------------------------ PEP 479 (https://www.python.org/dev/peps/pep-0479/) changes "raise StopIteration" inside a generator to cause RuntimeError to be raised (previously, it would stop the generator, same...
*Original report by [jayvdb](https://launchpad.net/~jayvdb) (@jayvdb?) on [Launchpad](https://bugs.launchpad.net/bugs/1507216):* ------------------------------------ When locals() is encountered, unused variable detection is repressed. Use of locals() should cause a warning to occur, indicating that unused variable...