Skip to content

Commit bfde746

Browse files
committed
Limit mypy CI check
1 parent 1f61111 commit bfde746

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,23 @@ jobs:
3737
if: runner.os == 'Linux'
3838
run: |
3939
# Critical checks
40-
mypy lean/ --ignore-missing-imports --check-untyped-defs
40+
mypy_output=$(mypy lean/ \
41+
--ignore-missing-imports \
42+
--check-untyped-defs \
43+
--show-error-codes \
44+
--no-error-summary 2>&1)
45+
46+
missing_args=$(echo "$mypy_output" | grep -E "Missing positional argument|\[call-arg\]")
47+
48+
if [ -n "$missing_args" ]; then
49+
echo "❌ ERROR: Missing function arguments detected:"
50+
echo ""
51+
echo "$missing_args"
52+
echo ""
53+
echo "When adding/removing parameters from methods, ensure all call sites are updated."
54+
exit 1
55+
fi
56+
4157
flake8 lean/ --select=F821 --ignore=ALL
4258
4359
# Warning checks (don't fail the build)

0 commit comments

Comments
 (0)