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

pyflakes should handle unexpanded wildcards (via glob() or so) from commandline ``` pyflakes abc*.py ( 'abc*.py' in sys.argv ) ``` (e.g. on Windows, where there is no shell expansion)

Hi there! Do you think that adds a .pre-commit hook with flake8 can be useful for contributors?

pyflakes v2.2.0 (on PY3.7) barks incorrectly on complex expressions in named placeholders of classic format strings - which are valid Python3 & Python2. The bug was not in pyflakes v2.1.1...

Consider this silly code: ```python int = 42 del int x = int('42') print(x) ``` This is perfectly valid Python: if you run it, it'll print 42. flake8 emits a...

Given this sample file: ```python def foo(): a = 10 b: str return 1 foo() ``` It correctly gives an error about the variable `a`: `test.py:2:5 local variable 'a' is...

Background info at https://github.com/pypa/warehouse/pull/7882#issue-412444446

I am not sure if this is something that should be fixed in pyflakes as it only concerns stub files and is a genuine error in Python files. Please consider:...

```py class Test: a = [1, 2, 3] b = [1, 2, 3] c = [i*j for i in a for j in b] ``` Pyflakes gives no errors here....