File tree 2 files changed +34
-1
lines changed
2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -49,3 +49,35 @@ unfixable = ["F401"]
49
49
[tool .ruff .mccabe ]
50
50
# Unlike Flake8, default to a complexity level of 10.
51
51
max-complexity = 10
52
+
53
+ [tool .mypy ]
54
+
55
+ strict = true
56
+ python_version = " 3.8"
57
+ ignore_missing_imports = true
58
+ install_types = true
59
+ non_interactive = true
60
+ plugins = [
61
+ " pydantic.mypy"
62
+ ]
63
+
64
+ # remove after all files in the repo are fixed
65
+ follow_imports = " silent"
66
+
67
+ # from https://blog.wolt.com/engineering/2021/09/30/professional-grade-mypy-configuration/
68
+ disallow_untyped_defs = true
69
+ no_implicit_optional = true
70
+ check_untyped_defs = true
71
+ warn_return_any = true
72
+ show_error_codes = true
73
+ warn_unused_ignores = true
74
+
75
+ disallow_incomplete_defs = true
76
+ disallow_untyped_decorators = true
77
+ disallow_any_unimported = true
78
+
79
+ exclude = [
80
+ # This file needs to be either upgraded or removed and therefore should be
81
+ # ignore from type checking for now
82
+ " math_utils\\ .py$" ,
83
+ ]
Original file line number Diff line number Diff line change 20
20
"flaml" ,
21
21
"python-dotenv" ,
22
22
"tiktoken" ,
23
- "pydantic>=1.10,<3" , # could be both V1 and V2
23
+ # Disallowing 2.6.0 can be removed when this is fixed https://github.com/pydantic/pydantic/issues/8705
24
+ "pydantic>=1.10,<3,!=2.6.0" , # could be both V1 and V2
24
25
"docker" ,
25
26
]
26
27
You can’t perform that action at this time.
0 commit comments