Derived from the flake8-executable linter.
What it does#
Checks for a shebang directive that is not at the beginning of the file.
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.
#! prefix must be the first two characters of a file. If
the shebang is not at the beginning of the file, it will be ignored, which
is likely a mistake.