Skip to content

Commit ecde60b

Browse files
Avasamabravalheri
authored andcommitted
Update mypy.ini from skeleton
1 parent 61a5a03 commit ecde60b

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

mypy.ini

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
[mypy]
2-
# CI should test for all versions, local development gets hints for oldest supported
3-
# But our testing setup doesn't allow passing CLI arguments, so local devs have to set this manually.
4-
# python_version = 3.8
2+
## upstream
3+
4+
# Is the project well-typed?
55
strict = False
6+
7+
# Early opt-in even when strict = False
68
warn_unused_ignores = True
79
warn_redundant_casts = True
8-
# required to support namespace packages: https://github.com/python/mypy/issues/14057
10+
enable_error_code = ignore-without-code
11+
12+
# Support namespace packages per https://github.com/python/mypy/issues/14057
913
explicit_package_bases = True
1014

1115
disable_error_code =
1216
# Disable due to many false positives
1317
overload-overlap,
1418

19+
## local
20+
21+
# CI should test for all versions, local development gets hints for oldest supported
22+
# But our testing setup doesn't allow passing CLI arguments, so local devs have to set this manually.
23+
# python_version = 3.8
24+
1525
exclude = (?x)(
1626
# Avoid scanning Python files in generated folders
1727
^build/

0 commit comments

Comments
 (0)