-
Notifications
You must be signed in to change notification settings - Fork 182
Remove all shebangs from Python modules and checker #155
Conversation
/assign |
Travis CI failing, could you please take a look? |
Gotta change the check for the boilerplate test as well @oz123 |
The file should still be there. But I forgot to remove the shebang line from some modules, so now the test is failing. |
/lgtm Although I still worry a little bit about the files that are supposed to contain the shebang (I believe there is not any in this repo right now). |
PS: This needs a tide label or a commit squash |
@micw523 I pushed new changes documenting how to handle scripts that should include a shebang. |
Codecov Report
@@ Coverage Diff @@
## master #155 +/- ##
=======================================
Coverage 93.56% 93.56%
=======================================
Files 13 13
Lines 1384 1384
=======================================
Hits 1295 1295
Misses 89 89
Continue to review full report at Codecov.
|
As discussed, Python modules which aren't intended to be invoked as scripts should not include a shebang line. Update CONTRIBUTING.md and the checker script. This script now includes a list SKIP_FILES for files that should not be checked for boilerplate template. The tests will now fail if a Python module has a shebang line. Scripts which should have a shebang line and exists in the directory `hack` can be ignored by adding them to the SKIP_FILES list.
/lgtm |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: oz123, yliaog The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
As discussed, Python modules which aren't intended to be invoked
as scripts should not include a shebang line.