mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 03:56:54 +00:00
Add check-docstring-first hook.
This commit is contained in:
parent
7a5a46a1dc
commit
53f1dc0163
5 changed files with 142 additions and 4 deletions
10
hooks.yaml
10
hooks.yaml
|
|
@ -7,11 +7,17 @@
|
|||
args: [-i]
|
||||
- id: check-added-large-files
|
||||
name: Check for added large files
|
||||
language: python
|
||||
entry: check-added-large-files
|
||||
description: Prevent giant files from being committed
|
||||
entry: check-added-large-files
|
||||
language: python
|
||||
# Match all files
|
||||
files: ''
|
||||
- id: check-docstring-first
|
||||
name: Check docstring is first
|
||||
description: Checks a common error of defining a docstring after code.
|
||||
entry: check-docstring-first
|
||||
language: python
|
||||
files: \.py$
|
||||
- id: check-json
|
||||
name: Check JSON
|
||||
description: This hook checks json files for parseable syntax.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue