Skip to content

Commit 9f91506

Browse files
committed
Enable --strict and then disable some of the errors
1 parent ffe4ae5 commit 9f91506

1 file changed

Lines changed: 11 additions & 15 deletions

File tree

pyproject.toml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
[tool.zuban]
2-
# Exclude our copies of external stubs
3-
exclude = "^jedi/third_party|^test/(completion|refactor|static_analysis|examples)/"
4-
5-
show_error_codes = true
6-
enable_error_code = "ignore-without-code"
2+
strict = true
3+
enable_error_code = ["ignore-without-code"]
74

8-
# Ensure generics are explicit about what they are (e.g: `List[str]` rather than
9-
# just `List`)
10-
disallow_any_generics = true
11-
disallow_subclassing_any = true
5+
# Revert some --strict specific flags:
6+
allow_untyped_calls = true
7+
allow_untyped_defs = true
8+
allow_incomplete_defs = true
9+
allow_untyped_globals = true
10+
untyped_strict_optional = false
11+
implicit_reexport = true
1212

13-
# Avoid creating future gotchas emerging from bad typing
14-
warn_redundant_casts = true
15-
warn_return_any = true
16-
warn_unused_configs = true
17-
18-
strict_equality = true
13+
# Exclude our copies of external stubs
14+
exclude = "^jedi/third_party|^test/(completion|refactor|static_analysis|examples)/"

0 commit comments

Comments
 (0)