Skip to content

Commit b54918c

Browse files
chore: enable subset of the 'mypy --strict' options that work
Enable the subset of the 'mypy --strict' options that work with no changes to the code.
1 parent 2708f91 commit b54918c

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

pyproject.toml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,25 @@ multi_line_output = 3
44
order_by_type = false
55

66
[tool.mypy]
7+
files = "."
8+
9+
# 'strict = true' is equivalent to the following:
10+
check_untyped_defs = true
711
disallow_incomplete_defs = true
12+
disallow_subclassing_any = true
13+
disallow_untyped_decorators = true
814
disallow_untyped_defs = true
9-
files = "."
15+
warn_unused_configs = true
16+
warn_unused_ignores = true
17+
18+
# The following need to have changes made to be able to enable them:
19+
# disallow_any_generics = true
20+
# disallow_untyped_calls = true
21+
# no_implicit_optional = true
22+
# no_implicit_reexport = true
23+
# strict_equality = true
24+
# warn_redundant_casts = true
25+
# warn_return_any = true
1026

1127
[[tool.mypy.overrides]] # Overrides for currently untyped modules
1228
module = [

0 commit comments

Comments
 (0)