Skip to content

Commit 2410b4a

Browse files
authored
1 parent 19ac5a5 commit 2410b4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/push.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ jobs:
7272
- name: Verify no lint disabled in the new code
7373
run: |
7474
NEW_CODE=$(git diff origin/main..$(git branch --show-current) | grep -e '^+')
75+
echo "Code diff:"
76+
echo "${NEW_CODE}"
7577
CHEAT=$(echo "${NEW_CODE}" | grep '# pylint: disable' | grep -v "CHEAT" | wc -c)
78+
echo "# cheats: ${CHEAT}"
7679
if [ "${CHEAT}" -ne 0 ]; then
7780
echo "Do not cheat the linter: ${CHEAT}"
7881
exit 1

0 commit comments

Comments
 (0)