Skip to content

Commit f062a8c

Browse files
committed
Use stricter mypy rules. exclude v1
Signed-off-by: Yurii Serhiichuk <savik.ne@gmail.com>
1 parent 8b983c5 commit f062a8c

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

mypy.ini

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
[mypy]
2-
python_version = 3.8
2+
python_version = 3.9
33

4+
ignore_missing_imports = True
5+
namespace_packages = True
6+
explicit_package_bases = True
7+
scripts_are_modules = True
48
pretty = True
59
show_error_context = True
610
follow_imports_for_stubs = True
11+
warn_redundant_casts = True
12+
warn_unused_ignores = True
713
# subset of mypy --strict
814
# https://mypy.readthedocs.io/en/stable/config_file.html
915
check_untyped_defs = True
1016
disallow_incomplete_defs = True
1117
warn_return_any = True
1218
strict_equality = True
13-
14-
[mypy-deprecation.*]
15-
ignore_missing_imports = True
19+
disallow_untyped_defs = True
20+
exclude = src/cloudevents/v1

0 commit comments

Comments
 (0)