mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 12:54:17 +00:00
Add shellcheck hook
Allows easy enablement of shellcheck without adding an extra git cloning step.
This commit is contained in:
parent
31853d6c43
commit
3cf7c2630b
2 changed files with 9 additions and 0 deletions
|
|
@ -179,6 +179,14 @@
|
||||||
entry: requirements-txt-fixer
|
entry: requirements-txt-fixer
|
||||||
language: python
|
language: python
|
||||||
files: requirements.*\.txt$
|
files: requirements.*\.txt$
|
||||||
|
- id: shellcheck
|
||||||
|
name: shellcheck
|
||||||
|
description: Test shell scripts with shellcheck
|
||||||
|
entry: shellcheck
|
||||||
|
language: python
|
||||||
|
types: [shell]
|
||||||
|
additional_dependencies: [shellcheck-py]
|
||||||
|
require_serial: true # shellcheck can detect sourcing this way
|
||||||
- id: sort-simple-yaml
|
- id: sort-simple-yaml
|
||||||
name: Sort simple YAML files
|
name: Sort simple YAML files
|
||||||
language: python
|
language: python
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,7 @@ Add this to your `.pre-commit-config.yaml`
|
||||||
- `--no-sort-keys` - when autofixing, retain the original key ordering (instead of sorting the keys)
|
- `--no-sort-keys` - when autofixing, retain the original key ordering (instead of sorting the keys)
|
||||||
- `--top-keys comma,separated,keys` - Keys to keep at the top of mappings.
|
- `--top-keys comma,separated,keys` - Keys to keep at the top of mappings.
|
||||||
- `requirements-txt-fixer` - Sorts entries in requirements.txt and removes incorrect entry for `pkg-resources==0.0.0`
|
- `requirements-txt-fixer` - Sorts entries in requirements.txt and removes incorrect entry for `pkg-resources==0.0.0`
|
||||||
|
- `shellcheck` - Test shell scripts with shellcheck
|
||||||
- `sort-simple-yaml` - Sorts simple YAML files which consist only of top-level
|
- `sort-simple-yaml` - Sorts simple YAML files which consist only of top-level
|
||||||
keys, preserving comments and blocks.
|
keys, preserving comments and blocks.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue