-
Notifications
You must be signed in to change notification settings - Fork 3
/
mypy.ini
34 lines (27 loc) · 863 Bytes
/
mypy.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[mypy]
# plugins = mypy_plugins/check_mypy_version.py
cache_dir = .mypy_cache/normal
warn_unused_configs = True
warn_redundant_casts = True
show_error_codes = True
show_column_numbers = True
check_untyped_defs = True
follow_imports = silent
# do not reenable this:
# https://github.com/pytorch/pytorch/pull/60006#issuecomment-866130657
warn_unused_ignores = False
#
# Note: test/ still has syntax errors so can't be added
#
# Typing tests is low priority, but enabling type checking on the
# untyped test functions (using `--check-untyped-defs`) is still
# high-value because it helps test the typing.
#
# exclude = torch/include/|torch/csrc/|torch/distributed/elastic/agent/server/api.py
# Minimum version supported - variable annotations were introduced
python_version = 3.7
#
# Extension modules without stubs.
#
# [mypy-pathlib]
# ignore_errors = True