There is a new pull request by sgn against master on the void-packages repository https://github.com/sgn/void-packages python3-shebang-rewrite-fix https://github.com/void-linux/void-packages/pull/17837 hook: python-shebang: check for shebang in the first line only - Grepping whole files is inefficient - git-instaweb (in git package) has the code to generate python file in a here doc in the middle of its code, old hook generates false positive with this package A patch file from https://github.com/void-linux/void-packages/pull/17837.patch is attached