Skip to content

Commit 8c0bb65

Browse files
committed
Update mypy.ini from skeleton
1 parent e2d1bfd commit 8c0bb65

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

mypy.ini

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
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
14+
15+
# Disable overload-overlap due to many false-positives
16+
disable_error_code = overload-overlap
17+
18+
## local
19+
20+
# CI should test for all versions, local development gets hints for oldest supported
21+
# But our testing setup doesn't allow passing CLI arguments, so local devs have to set this manually.
22+
# python_version = 3.8
23+
1024
exclude = (?x)(
1125
# Avoid scanning Python files in generated folders
1226
^build/
@@ -19,8 +33,6 @@ exclude = (?x)(
1933
# Duplicate module name
2034
| ^pkg_resources/tests/data/my-test-package-source/setup.py$
2135
)
22-
# Too many false-positives
23-
disable_error_code = overload-overlap
2436

2537
# DistributionMetadata.license_files and DistributionMetadata.license_file
2638
# are dynamically patched in setuptools/_core_metadata.py

0 commit comments

Comments
 (0)