Skip to content

Commit 3d421e9

Browse files
committed
Limit mypy CI check
1 parent 1f61111 commit 3d421e9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,15 @@ jobs:
3737
if: runner.os == 'Linux'
3838
run: |
3939
# Critical checks
40-
mypy lean/ --ignore-missing-imports --check-untyped-defs
40+
if mypy lean/ \
41+
--ignore-missing-imports \
42+
--check-untyped-defs \
43+
--no-implicit-optional \
44+
--warn-return-any \
45+
--show-error-codes 2>&1 | grep -q "Missing positional argument\|\[call-arg\]"; then
46+
echo "ERROR: Missing function arguments detected"
47+
exit 1
48+
fi
4149
flake8 lean/ --select=F821 --ignore=ALL
4250
4351
# Warning checks (don't fail the build)

0 commit comments

Comments
 (0)