Skip to content

Commit 56e59d5

Browse files
committed
chore: Add mypy settings to pyproject.toml
1 parent 9df1589 commit 56e59d5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,19 @@ convention = "google" # Google style docstrings
3535

3636
[tool.ruff.lint.mccabe]
3737
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)

0 commit comments

Comments
 (0)