Skip to content

Commit

Permalink
Echo new code and # cheats on no-lint-disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
JCZuurmond committed Nov 19, 2024
1 parent 2547096 commit 844614d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ jobs:
- name: Verify no lint disabled in the new code
run: |
NEW_CODE=$(git diff origin/main..$(git branch --show-current) | grep -e '^+')
echo "New code: $NEW_CODE"
echo "Code diff:\n$NEW_CODE"
CHEAT=$(echo "${NEW_CODE}" | grep '# pylint: disable' | grep -v "CHEAT" | wc -c)
echo "Cheat: $CHEAT"
echo "# cheats: $CHEAT"
if [ "${CHEAT}" -ne 0 ]; then
echo "Do not cheat the linter: ${CHEAT}"
exit 1
Expand Down

0 comments on commit 844614d

Please sign in to comment.