Skip to content

Commit 844614d

Browse files
committed
Echo new code and # cheats on no-lint-disabled
1 parent 2547096 commit 844614d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ jobs:
6565
- name: Verify no lint disabled in the new code
6666
run: |
6767
NEW_CODE=$(git diff origin/main..$(git branch --show-current) | grep -e '^+')
68-
echo "New code: $NEW_CODE"
68+
echo "Code diff:\n$NEW_CODE"
6969
CHEAT=$(echo "${NEW_CODE}" | grep '# pylint: disable' | grep -v "CHEAT" | wc -c)
70-
echo "Cheat: $CHEAT"
70+
echo "# cheats: $CHEAT"
7171
if [ "${CHEAT}" -ne 0 ]; then
7272
echo "Do not cheat the linter: ${CHEAT}"
7373
exit 1

0 commit comments

Comments
 (0)