add forbid-type-hints

This commit is contained in:
Daniel Metz 2018-07-27 11:28:05 -07:00
parent 219c70a9c1
commit a3849e9128

View file

@ -263,3 +263,9 @@
# for backward compatibility
files: ''
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]