mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 12:06:53 +00:00
Add check for executability of scripts with shebangs
Closes https://github.com/pre-commit/pre-commit-hooks/issues/543
This commit is contained in:
parent
9e7cd9f13a
commit
391ae30a64
5 changed files with 151 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue