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.
1 parent 19ac5a5 commit 2410b4aCopy full SHA for 2410b4a
.github/workflows/push.yml
@@ -72,7 +72,10 @@ jobs:
72
- name: Verify no lint disabled in the new code
73
run: |
74
NEW_CODE=$(git diff origin/main..$(git branch --show-current) | grep -e '^+')
75
+ echo "Code diff:"
76
+ echo "${NEW_CODE}"
77
CHEAT=$(echo "${NEW_CODE}" | grep '# pylint: disable' | grep -v "CHEAT" | wc -c)
78
+ echo "# cheats: ${CHEAT}"
79
if [ "${CHEAT}" -ne 0 ]; then
80
echo "Do not cheat the linter: ${CHEAT}"
81
exit 1
0 commit comments