Skip to content

Commit 6b45ae4

Browse files
authored
Merge pull request lightspeed-core#751 from tisnik/lcore-903-proper-mypy-settings-in-project-file
LCORE-903: proper Mypy settings in Python project file
2 parents cd3291c + 37a08ad commit 6b45ae4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,11 @@ disable = ["R0801"]
189189
[tool.ruff]
190190
[tool.ruff.lint.flake8-tidy-imports]
191191
banned-api = { "unittest" = { msg = "use pytest instead of unittest" }, "unittest.mock" = { msg = "use pytest-mock instead of unittest.mock" } }
192+
193+
[tool.mypy]
194+
explicit_package_bases = true
195+
disallow_untyped_calls = true
196+
disallow_untyped_defs = true
197+
disallow_incomplete_defs = true
198+
ignore_missing_imports = true
199+
disable_error_code = "attr-defined"

0 commit comments

Comments
 (0)