Skip to content

ci: mypy and ruff checks #2

ci: mypy and ruff checks

ci: mypy and ruff checks #2

Triggered via push December 23, 2024 08:19
Status Failure
Total duration 1m 0s
Artifacts

ci.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 1 warning
mypy: src/tools/finance.py#L22
[mypy] reported by reviewdog 🐶 Incompatible return value type (got "Any | None", expected "float") [return-value] Raw Output: /home/runner/work/libertai-telegram-bot/libertai-telegram-bot/src/tools/finance.py:22:16: error: Incompatible return value type (got "Any | None", expected "float") [return-value]
mypy: src/tools/finance.py#L24
[mypy] reported by reviewdog 🐶 Incompatible return value type (got "None", expected "float") [return-value] Raw Output: /home/runner/work/libertai-telegram-bot/libertai-telegram-bot/src/tools/finance.py:24:16: error: Incompatible return value type (got "None", expected "float") [return-value]
mypy: src/tools/finance.py#L47
[mypy] reported by reviewdog 🐶 Incompatible return value type (got "None", expected "dict[Any, Any]") [return-value] Raw Output: /home/runner/work/libertai-telegram-bot/libertai-telegram-bot/src/tools/finance.py:47:20: error: Incompatible return value type (got "None", expected "dict[Any, Any]") [return-value]
mypy: src/tools/finance.py#L50
[mypy] reported by reviewdog 🐶 Incompatible return value type (got "None", expected "dict[Any, Any]") [return-value] Raw Output: /home/runner/work/libertai-telegram-bot/libertai-telegram-bot/src/tools/finance.py:50:16: error: Incompatible return value type (got "None", expected "dict[Any, Any]") [return-value]
mypy: src/utils/database.py#L98
[mypy] reported by reviewdog 🐶 Incompatible types in assignment (expression has type "User | None", variable has type "Result[tuple[User]]") [assignment] Raw Output: /home/runner/work/libertai-telegram-bot/libertai-telegram-bot/src/utils/database.py:98:28: error: Incompatible types in assignment (expression has type "User | None", variable has type "Result[tuple[User]]") [assignment]
mypy: src/utils/database.py#L117
[mypy] reported by reviewdog 🐶 "Result[tuple[User]]" has no attribute "id" [attr-defined] Raw Output: /home/runner/work/libertai-telegram-bot/libertai-telegram-bot/src/utils/database.py:117:38: error: "Result[tuple[User]]" has no attribute "id" [attr-defined]
mypy: src/utils/database.py#L165
[mypy] reported by reviewdog 🐶 Incompatible return value type (got "Sequence[Message]", expected "list[Message]") [return-value] Raw Output: /home/runner/work/libertai-telegram-bot/libertai-telegram-bot/src/utils/database.py:165:24: error: Incompatible return value type (got "Sequence[Message]", expected "list[Message]") [return-value]
mypy
Process completed with exit code 1.
ruff
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636