mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 03:56:54 +00:00
add forbid-type-hints
This commit is contained in:
parent
219c70a9c1
commit
a3849e9128
1 changed files with 6 additions and 0 deletions
|
|
@ -263,3 +263,9 @@
|
||||||
# for backward compatibility
|
# for backward compatibility
|
||||||
files: ''
|
files: ''
|
||||||
minimum_pre_commit_version: 0.15.0
|
minimum_pre_commit_version: 0.15.0
|
||||||
|
- id: forbid-type-hints
|
||||||
|
name: Forbid Type Hints
|
||||||
|
description: Prevent type hints. Use type annotations instead.
|
||||||
|
entry: '# type.*(?<!: ignore)$'
|
||||||
|
language: pygrep
|
||||||
|
types: [python]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue