Skip to content

Commit

Permalink
Set Pyright to warn on unknown types (#480)
Browse files Browse the repository at this point in the history
Closes #367

"warning" diagnostics don't cause the pre-commit hook to fail, but
you'll get those highlighted in the code when using Pyright/Pylance LSP
  • Loading branch information
disrupted authored Apr 3, 2024
1 parent 1798bfa commit e168048
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,14 @@ mike = "^1.1.2"
[tool.poetry_bumpversion.file."kpops/__init__.py"]

[tool.pyright]
reportUnknownParameterType = "warning"
reportUnknownArgumentType = "warning"
reportUnknownLambdaType = "warning"
reportUnknownVariableType = "warning"
reportUnknownMemberType = "warning"

reportIncompatibleVariableOverride = false
reportIncompatibleMethodOverride = false

# FIXME: causes issues on Python 3.10
# reportIncompatibleVariableOverride = "warning"
# reportIncompatibleMethodOverride = "warning"
Expand Down

0 comments on commit e168048

Please sign in to comment.