Derived from the flake8-executable linter.
What it does#
Checks for executable
.py files that do not have a shebang.
Why is this bad?#
In Python, a shebang (also known as a hashbang) is the first line of a script, which specifies the interpreter that should be used to run the script.
.py file is executable, but does not have a shebang, it may be run
with the wrong interpreter, or fail to run at all.
If the file is meant to be executable, add a shebang; otherwise, remove the executable bit from the file.
This rule is only available on Unix-like systems.