pre-commit / pre-commit/pre-commit-hooks

`check-shebang-scripts-are-executable` Assumes Git Repo

Open
#749 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
6.7k
Forks
800
PR merge metrics
No merged PRs in 30d

Description

check-executables-have-shebangs supports being run on files outside of a Git repository, so it seems natural for check-shebang-scripts-are-executable to do the same. I would guess it's also slightly faster to check executable bits through the file system when it can be trusted to track them properly.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the implementations and tests for check-shebang-scripts-are-executable and compare them with check-executables-have-shebangs, beginning with how each hook handles paths outside a Git repository. Done means the executable-checking hook works outside Git and its behavior is covered by tests for filesystem executable bits.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, python
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.