Indentation Errors and undefined names
Closed this issue · 0 comments
cclauss commented
flake8 testing of https://github.com/wilsonyin123/geekbangpython on Python 3.6.3
$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
./python_demo/06/network_bandwidth.py:9:1: F821 undefined name 'bandWidth'
bandWidth
^
./python_demo/06/network_bandwidth.py:10:1: F821 undefined name 'BandWidth'
BandWidth
^
./python_demo/06/network_bandwidth.py:11:1: F821 undefined name 'band_width'
band_width
^
./python_demo/13/test_for.py:16:10: F821 undefined name 'zodiac_name'
for i in zodiac_name:
^
./python_demo/13/test_for.py:19:23: F821 undefined name 'zodiac_name'
z_num = {i:0 for i in zodiac_name} ^
./python_demo/22/func_test.py:198:1: F821 undefined name 'count'
count()
^
./python_demo/29/func_test3.py:11:16: E999 IndentationError: unindent does not match any outer indentation level
return arg_y
^
./python_demo/33/mymod.py:7:8: E999 SyntaxError: invalid syntax
https://www.python.org/dev/peps/pep-0008/
^
./timegeekbang.com/func_test.py:198:1: F821 undefined name 'count'
count()
^
./timegeekbang.com/func_test3.py:11:16: E999 IndentationError: unindent does not match any outer indentation level
return arg_y
^
./timegeekbang.com/mymod.py:7:8: E999 SyntaxError: invalid syntax
https://www.python.org/dev/peps/pep-0008/
^
./timegeekbang.com/network_bandwidth.py:9:1: F821 undefined name 'bandWidth'
bandWidth
^
./timegeekbang.com/network_bandwidth.py:10:1: F821 undefined name 'BandWidth'
BandWidth
^
./timegeekbang.com/network_bandwidth.py:11:1: F821 undefined name 'band_width'
band_width
^
./timegeekbang.com/test_for.py:16:10: F821 undefined name 'zodiac_name'
for i in zodiac_name:
^
./timegeekbang.com/test_for.py:19:23: F821 undefined name 'zodiac_name'
z_num = {i:0 for i in zodiac_name} ^
4 E999 IndentationError: unindent does not match any outer indentation level
12 F821 undefined name 'bandWidth'
16