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
./pwnagotchi/ui/hw/libs/waveshare/lcdhat/config.py:34:23: F821 undefined name 'BUSY_PIN'
return GPIO.input(BUSY_PIN)
^
./pwnagotchi/ui/hw/libs/waveshare/lcdhat/config.py:44:5: F821 undefined name 'bus'
bus.write_byte_data(address, reg, value)
^
./pwnagotchi/ui/hw/libs/waveshare/lcdhat/config.py:44:25: F821 undefined name 'address'
bus.write_byte_data(address, reg, value)
^
3 F821 undefined name 'BUSY_PIN'
3
E901,E999,F821,F822,F823 are the "showstopper" flake8 issues that can halt the runtime with a SyntaxError, NameError, etc. These 5 are different from most other flake8 issues which are merely "style violations" -- useful for readability but they do not effect runtime safety.
F821: undefined name name
F822: undefined name name in __all__
F823: local variable name referenced before assignment
E901: SyntaxError or IndentationError
E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree
Describe the bug
A clear and concise description of what the bug is.
flake8 testing of https://github.com/evilsocket/pwnagotchi on Python 3.8.0
$ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
E901,E999,F821,F822,F823 are the "showstopper" flake8 issues that can halt the runtime with a SyntaxError, NameError, etc. These 5 are different from most other flake8 issues which are merely "style violations" -- useful for readability but they do not effect runtime safety.
name
name
in__all__
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
No undefined names in Python code.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
These instance have the potential to raise NameError at runtime.
The text was updated successfully, but these errors were encountered: