Add check for executability of scripts with shebangs

Closes https://github.com/pre-commit/pre-commit-hooks/issues/543
This commit is contained in:
Ville Skyttä 2021-01-08 17:36:55 +02:00 committed by Anthony Sottile
parent 9e7cd9f13a
commit 391ae30a64
5 changed files with 151 additions and 0 deletions

View file

@ -52,6 +52,13 @@
entry: check-json
language: python
types: [json]
- id: check-shebang-scripts-are-executable
name: Check that scripts with shebangs are executable
description: Ensures that (non-binary) files with a shebang are executable.
entry: check-shebang-scripts-are-executable
language: python
types: [text]
stages: [commit, push, manual]
- id: pretty-format-json
name: Pretty format JSON
description: This hook sets a standard for formatting JSON files.