There is a minor discrepancy on linter when executed as pre-commit run -a and algokit project run lint.
Also:
In .algokit.toml replace 'poetry run ruff .' (deprecated) with 'poetry run ruff check .'
In .algokit.toml replace 'poetry run mypy ' with 'poetry run mypy . '
Steps to reproduce
Init new project with algokit init
Build artifact with algokit project run build
Run linter with pre-commit run -a
Expected behaviour
Linter has no errors if run right after a project init.
Actual behavior
Lint errors in hello_world_test.py
Warning: --strict-concatenate is deprecated; use --extra-checks instead
error: Expression has type "Any" [misc]
error: Expression has type "Any" [misc]
error: Expression type contains "Any" (has type "dict[str, Any]") [misc]
error: Expression has type "Any" [misc]
Subject of the issue
There is a minor discrepancy on linter when executed as
pre-commit run -a
andalgokit project run lint
.Also:
.algokit.toml
replace'poetry run ruff .'
(deprecated) with'poetry run ruff check .'
.algokit.toml
replace'poetry run mypy '
with'poetry run mypy . '
Steps to reproduce
algokit init
algokit project run build
pre-commit run -a
Expected behaviour
Linter has no errors if run right after a project init.
Actual behavior
Lint errors in
hello_world_test.py