forked from aws/aws-sam-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypy.ini
55 lines (40 loc) · 1.46 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
50
51
52
53
54
55
# https://mypy.readthedocs.io/en/stable/config_file.html#config-file-format
[mypy]
warn_return_any=True
warn_unused_configs=True
no_implicit_optional=True
warn_redundant_casts=True
warn_unused_ignores=False # @jfuss Done as a stop gap since different py versions have different errors
warn_unreachable=True
#
# ignore errors in testdata
#
[mypy-tests.integration.testdata.*]
ignore_errors=True
#
# below are packages/modules that do not have stubs available
#
[mypy-botocore,botocore.*]
ignore_missing_imports=True
[mypy-docker,docker.*]
ignore_missing_imports=True
[mypy-aws_lambda_builders,aws_lambda_builders.*]
ignore_missing_imports=True
[mypy-cookiecutter,cookiecutter.*]
ignore_missing_imports=True
[mypy-serverlessrepo,serverlessrepo.*]
ignore_missing_imports=True
[mypy-tomlkit]
ignore_missing_imports=True
[mypy-samtranslator,samtranslator.*]
ignore_missing_imports=True
[mypy-jmespath]
ignore_missing_imports=True
[mypy-parameterized]
ignore_missing_imports=True
[mypy-watchdog,watchdog.*]
ignore_missing_imports=True
# progressive add typechecks and these modules already complete the process, let's keep them clean
[mypy-samcli.lib.iac.plugins_interfaces,samcli.commands.build,samcli.lib.build.*,samcli.commands.local.cli_common.invoke_context,samcli.commands.local.lib.local_lambda,samcli.lib.providers.*,samcli.lib.utils.git_repo.py,samcli.lib.cookiecutter.*,samcli.lib.pipeline.*,samcli.commands.pipeline.*]
disallow_untyped_defs=True
disallow_incomplete_defs=True