add mypy config matching precommit

pull/25892/head
Cameron Clough 3 years ago
parent d997d40f17
commit e55d071a3e
No known key found for this signature in database
GPG Key ID: BFB3B74B026ED43F
  1. 12
      mypy.ini

@ -1,4 +1,14 @@
[mypy]
python_version = 3.8
ignore_missing_imports = True
plugins = numpy.typing.mypy_plugin
; third-party packages
ignore_missing_imports = True
; helpful warnings
warn_redundant_casts = True
warn_unreachable = True
warn_unused_ignores = True
; restrict dynamic typing
warn_return_any = True

Loading…
Cancel
Save