Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ddb447c

Browse files
authoredDec 8, 2022
Update mypy to 0.991 (#197)
* Bump pre-commit hooks * [mypy] Set namespace_packages=False & remove mypy config options set to their default value in mypy 0.991
1 parent 74f3972 commit ddb447c

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed
 

‎.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/ambv/black
3-
rev: 22.8.0
3+
rev: 22.10.0
44
hooks:
55
- id: black
66
- repo: https://github.com/pycqa/isort
@@ -13,6 +13,6 @@ repos:
1313
hooks:
1414
- id: flake8
1515
- repo: https://github.com/pre-commit/mirrors-mypy
16-
rev: v0.981
16+
rev: v0.991
1717
hooks:
1818
- id: mypy

‎setup.cfg

+2-14
Original file line numberDiff line numberDiff line change
@@ -47,27 +47,16 @@ per-file-ignores =
4747
__init__.py: F401, F403
4848

4949
[mypy]
50-
show_error_codes = True
50+
# Import discovery
51+
namespace_packages = False
5152
ignore_missing_imports = True
5253

53-
# Disallow dynamic typing
54-
#disallow_any_decorated = True
55-
#disallow_any_unimported = True
56-
#disallow_any_expr = True
57-
#disallow_any_explicit = True
58-
disallow_any_generics = True
59-
#disallow_subclassing_any = True
60-
6154
# Untyped definitions and calls
6255
disallow_untyped_calls = True
6356
disallow_untyped_defs = True
6457
disallow_incomplete_defs = True
6558
disallow_untyped_decorators = True
6659

67-
# None and Optional handling
68-
no_implicit_optional = True
69-
strict_optional = True
70-
7160
# Configuring warnings
7261
warn_redundant_casts = True
7362
warn_unused_ignores = True
@@ -76,7 +65,6 @@ warn_return_any = True
7665
warn_unreachable = True
7766

7867
# Miscellaneous strictness flags
79-
implicit_reexport = True
8068
strict_equality = True
8169

8270
[mypy-tests.*]

0 commit comments

Comments
 (0)
Please sign in to comment.