File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -35,3 +35,19 @@ convention = "google" # Google style docstrings
35
35
36
36
[tool .ruff .lint .mccabe ]
37
37
max-complexity = 10 # Maximum cyclomatic complexity allowed for a function or method.
38
+
39
+ [tool .mypy ]
40
+ python_version = " 3.13"
41
+ exclude = [" ^test/" ] # TODO: this seems to not work
42
+ disable_error_code = [" var-annotated" ]
43
+
44
+ # strict = true # Enable strict type checking mode
45
+ pretty = true # Show error messages in a more readable format
46
+ show_error_codes = true # Show error codes in error messages
47
+ incremental = true # Enable incremental mode for faster checking
48
+ disallow_untyped_defs = true # Disallow functions without type annotations
49
+ disallow_untyped_calls = true # Warn about calling functions without type annotations
50
+ no_implicit_optional = true # Disallow implicit optional types
51
+ warn_return_any = true # Warn about returning Any type
52
+ cache_dir = " .mypy_cache" # Directory for cache files
53
+ ignore_missing_imports = true # Skip type checking for missing imports (useful for third-party packages)
You can’t perform that action at this time.
0 commit comments