Skip to content

Commit c390d05

Browse files
committed
add to CI
1 parent c540add commit c390d05

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

toolchain/bootstrap/format.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,10 @@ if ! find ${@:-examples} -type f | grep -E '\.(py)$' \
2929
exit 1
3030
fi
3131

32+
if ! find ${@:-benchmarks} -type f | grep -E '\.(py)$' \
33+
| xargs -L 1 -P ${JOBS:-1} $SHELL toolchain/bootstrap/format_python.sh; then
34+
error "Formatting MFC examples failed."
35+
exit 1
36+
fi
37+
3238
ok "Done. MFC has been formatted."

toolchain/bootstrap/lint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ log "(venv) Running$MAGENTA pylint$COLOR_RESET on$MAGENTA MFC$COLOR_RESET's $MAG
1010

1111
pylint -d C0103,C0114,C0301,R0801,C0410,W0611,W1514,E0401,C0115,C0116,C0200,W1309,W0401,E0602,R1720,W0614,E1101 $(pwd)/examples/*/case.py
1212

13+
log "(venv) Running$MAGENTA pylint$COLOR_RESET on$MAGENTA MFC$COLOR_RESET's $MAGENTA""benchmarks$COLOR_RESET."
14+
15+
pylint -d C0103,C0114,C0301,R0801,C0410,W0611,W1514,E0401,C0115,C0116,C0200,W1309,W0401,E0602,R1720,W0614,E1101 $(pwd)/benchmarks/*/case.py
16+
1317
exit $?

0 commit comments

Comments
 (0)