We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
no-cheat
1 parent 1c00b60 commit a54c330Copy full SHA for a54c330
.github/workflows/push.yml
@@ -63,8 +63,8 @@ jobs:
63
- name: Verify no lint disabled in the new code
64
run: |
65
NEW_CODE=$(git diff origin/main..$(git branch --show-current) | grep -e '^+')
66
- CHEAT=$(echo "${NEW_CODE}" | grep '# pylint: disable')
67
- if [ -n "${CHEAT}" ]; then
+ CHEAT=$(echo "${NEW_CODE}" | grep '# pylint: disable' | grep -v "CHEAT" | wc -c)
+ if [ "${CHEAT}" -ne 0 ]; then
68
echo "Do not cheat the linter: ${CHEAT}"
69
exit 1
70
fi
0 commit comments