mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-13 07:41:19 +08:00
Extend target languages of end-of-file-fixer and trailing-whitespace.
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
description: Ensures that a file is either empty, or ends with one newline.
|
||||
entry: end-of-file-fixer
|
||||
language: python
|
||||
files: \.(erb|js|json|rb|md|py|scss|sh|tmpl|txt|yaml|yml)$
|
||||
files: \.(html|erb|slim|haml|ejs|jade|js|coffee|json|rb|md|py|css|scss|less|sh|tmpl|txt|yaml|yml)$
|
||||
- id: flake8
|
||||
name: Flake8
|
||||
description: This hook runs flake8.
|
||||
@@ -58,4 +58,4 @@
|
||||
description: This hook trims trailing whitespace.
|
||||
entry: trailing-whitespace-fixer
|
||||
language: python
|
||||
files: \.(erb|js|json|rb|md|py|scss|sh|tmpl|txt|yaml|yml)$
|
||||
files: \.(html|erb|slim|haml|ejs|jade|js|coffee|json|rb|md|py|css|scss|less|sh|tmpl|txt|yaml|yml)$
|
||||
|
||||
Reference in New Issue
Block a user