We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f61111 commit bfde746Copy full SHA for bfde746
.github/workflows/build.yml
@@ -37,7 +37,23 @@ jobs:
37
if: runner.os == 'Linux'
38
run: |
39
# Critical checks
40
- mypy lean/ --ignore-missing-imports --check-untyped-defs
+ 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
53
+ echo "When adding/removing parameters from methods, ensure all call sites are updated."
54
+ exit 1
55
+ fi
56
57
flake8 lean/ --select=F821 --ignore=ALL
58
59
# Warning checks (don't fail the build)
0 commit comments