-
Notifications
You must be signed in to change notification settings - Fork 12
/
mypy.ini
49 lines (40 loc) · 1.55 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[mypy]
# Note: `mypy` will still enforce that you have type stubs installed for libraries with known type stub support. This
# just avoids typing `type: ignore` at the end of every statement importing a module w/o type hints.
ignore_missing_imports = True
# The following two flags are explicitly set in the mypy package root to the current directory. They are required for mypy
# to uniquely determine the package roots for directories with __init__.py files.
explicit_package_bases = True
# This is default but vscode plugin may be old
namespace_packages = True
# Enables the following checks. These are meant to be a subset of the checks enabled by --strict.
check_untyped_defs = True
disallow_any_generics = True
disallow_incomplete_defs = True
# We inherit from classes like fsspec.AbstractFileSystem, absltest.TestCases which are considered of type Any.
#disallow_subclassing_any = True
disallow_untyped_calls = True
disallow_untyped_decorators = True
disallow_untyped_defs = True
warn_no_return = True
warn_redundant_casts = True
warn_return_any = True
# It seems, today we have lots of these.
#warn_unreachable = True
warn_unused_configs = True
warn_unused_ignores = True
implicit_reexport = False
strict_equality = True
extra_checks = True
enable_incomplete_feature = Unpack
pretty = True
show_absolute_path = True
show_column_numbers = True
show_error_codes = True
show_error_context = True
verbosity = 0
exclude = (?x)(
(^.*\/experimental\/.*)|(^bazel-.*) # ignore everything in the `/experimental/` directory
)
[mypy-snowflake.*]
disallow_untyped_defs = True