Skip to content

Commit 2337398

Browse files
committed
mypy: tighten config (3.9 target, disallow untyped/incomplete defs, no implicit Optional, warn on Any). Note: run with --explicit-package-bases or via tox.
1 parent 89eaba5 commit 2337398

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,15 @@ warn_unused_configs = true
6767
show_column_numbers = true
6868
show_error_codes = true
6969
warn_unused_ignores = true
70-
python_version = "3.10"
70+
python_version = "3.9"
71+
# Resolve module discovery reliably
72+
explicit_package_bases = true
73+
packages = ["litecli"]
74+
# Gradually tighten typing
75+
disallow_incomplete_defs = true
76+
disallow_untyped_defs = true
77+
no_implicit_optional = true
78+
warn_return_any = true
7179
exclude = [
7280
'^build/',
7381
'^dist/',

0 commit comments

Comments
 (0)