mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 19:46:54 +00:00
Adds fix-yaml hook
This adds missing --- header to yaml file, which is required for strict linting via yamllint. Future versions may add other fixes for yaml files. Fixes: #348
This commit is contained in:
parent
c8bad492e1
commit
2a92b74ea1
3 changed files with 59 additions and 0 deletions
|
|
@ -130,6 +130,15 @@
|
|||
entry: fix-encoding-pragma
|
||||
description: 'Add # -*- coding: utf-8 -*- to the top of python files'
|
||||
types: [python]
|
||||
- id: fix-yaml
|
||||
name: Fix YAML files
|
||||
language: python
|
||||
entry: fix-yaml
|
||||
description: 'Add --- header to yaml files'
|
||||
types: [yaml]
|
||||
# for backward compatibility
|
||||
files: ''
|
||||
minimum_pre_commit_version: 0.15.0
|
||||
- id: flake8
|
||||
name: Flake8
|
||||
description: This hook runs flake8.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue