forked from streamlit/streamlit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmypy.ini
More file actions
87 lines (69 loc) · 1.89 KB
/
mypy.ini
File metadata and controls
87 lines (69 loc) · 1.89 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
[mypy]
python_version = 3.10
cache_dir = .mypy_cache
incremental = true
files = lib/streamlit/, lib/tests/streamlit/typing/, scripts/, e2e_playwright/
exclude = (?x)(
# The compilation error test file cannot breaks mypy
# because it the syntax error.
^e2e_playwright/compilation_error_dialog\.py$
)
# strict mode settings:
warn_unused_configs = true
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
check_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
no_implicit_reexport = true
strict_equality = true
extra_checks = true
# other settings:
allow_redefinition = false
no_implicit_optional = true
strict_optional = true
warn_unreachable = true
warn_no_return = true
scripts_are_modules = true
namespace_packages = true
show_error_context = true
show_column_numbers = true
show_error_codes = true
pretty = true
[mypy-e2e_playwright.*]
# We don't want to enforce return types for test functions
disallow_incomplete_defs = false
disallow_untyped_calls = false
disallow_untyped_defs = false
[mypy-tests.*]
# Ignore all error in unit tests
ignore_errors = true
[mypy-tests.streamlit.typing.*]
# Explicitly enable type checking for the typing tests
ignore_errors = false
[mypy-shared.*]
ignore_missing_imports = true
# We need to set ignore_missing_imports to true for all optional dependencies,
[mypy-vega_datasets.*]
ignore_missing_imports = true
[mypy-sympy.*]
ignore_missing_imports = true
[mypy-plotly.*]
ignore_missing_imports = true
[mypy-pydeck.*]
ignore_missing_imports = true
[mypy-pyarrow.*]
ignore_missing_imports = true
[mypy-graphviz.*]
ignore_missing_imports = true
[mypy-authlib.*]
ignore_missing_imports = true
[mypy-uvloop.*]
ignore_missing_imports = true
[mypy-polars.*]
ignore_missing_imports = true