pyflakes icon indicating copy to clipboard operation
pyflakes copied to clipboard

A simple program which checks Python source files for errors

Results 74 pyflakes issues
Sort by recently updated
recently updated
newest added

Functions with a decorator are considered unused, leading to situations like https://github.com/PyCQA/pyflakes/issues/320 and https://github.com/sympy/sympy/issues/17795. If I run flake8 on the: ``` def my_overload(func): print(func) pass @my_overload def utf8(value: bytes) ->...

I expect this to flag two errors: ```python def f(): class IAmUnused: pass def i_am_unused(): pass ```

*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...

help wanted

```py a = 1 def test(): a = 2 del a print(a) test() ``` The code produces `UnboundLocalError: local variable 'a' referenced before assignment`, but pyflakes shows now errors. The...

I just realized that I never opened an issue about this. After https://github.com/PyCQA/pyflakes/pull/20, several compile-time syntax errors are warned about, but not all of them. The reason is that when...

Would you plan to support reporting in [Code Climate format](/codeclimate/spec)? This will allow usage of `pyflakes` as Code Climate engine, so many Python developers will be able to use it...

When using a package versioning helper such as setuptools_scm, it is quite natural to write, in a package's toplevel `__init__.py`, something like ``` from ._version import version as __version__ ```...

The recent builtin rewrite had one regression, in that it allowed them to be deleted. The first commit fixes that, but there are several builtins which can be deleted. The...

``` class A: @property def __class__(self): return int @__class__.setter def __class__(self, __type): raise NotImplementedError() @property def blah(self): return int @blah.setter def blah(self, __type): raise NotImplementedError() ``` This fails like this:...

Fixes #136 Fixes #333