Skip to content

Commit 87a94ee

Browse files
committed
add mypy + report
1 parent 681ce3d commit 87a94ee

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/ci-lint.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,14 @@ jobs:
2626
poetry run pre-commit run end-of-file-fixer
2727
poetry run pre-commit run ruff
2828
poetry run pre-commit run ruff-format
29+
- name: Execute mypy
30+
run: |
31+
poetry run mypy --config-file pyproject.toml core | tee mypy.log
32+
- name: Generate mypy report
33+
run: |
34+
if [ -s mypy.log ]; then
35+
echo "Mypy issues found. Generating report...";
36+
poetry run python scripts/mypy_report.py mypy.log;
37+
else
38+
echo "No mypy issues found.";
39+
fi

0 commit comments

Comments
 (0)