Add sort-simple-yaml hook (originally private hook from yelp_pre_commit_hooks)

This commit is contained in:
Daniel Gallagher 2017-06-23 16:26:00 -07:00
parent 78818b90cd
commit b6eff3d39e
7 changed files with 258 additions and 0 deletions

View file

@ -147,6 +147,12 @@
entry: requirements-txt-fixer
language: python
files: requirements.*\.txt$
- id: sort-simple-yaml
name: Sort simple YAML files
language: python
entry: sort-simple-yaml
description: Sorts simple YAML files which consist only of top-level keys, preserving comments and blocks.
files: '^$'
- id: trailing-whitespace
name: Trim Trailing Whitespace
description: This hook trims trailing whitespace.