summaryrefslogtreecommitdiff
path: root/mypy.ini
blob: 7d3f37538324fbd560dbc8b08e4e014e5948cda1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[mypy]
# Check Python 2 code for type annotations in comments.
python_version = 2.7

[mypy-*]
disallow_untyped_defs = False
# Do not error on imported files since all imported files may not be mypy clean.
follow_imports = silent
# Do not error if imports are not found.
# This can be a problem with standalone scripts and relative imports.
# This will limit effectiveness but avoids mypy complaining about running code.
ignore_missing_imports = True

[mypy-idl*]
# Error if any code is missing type annotations.
disallow_untyped_defs = True

[mypy-lint*]
# Error if any code is missing type annotations.
disallow_untyped_defs = True