Skip to content

Commit

Permalink
Add set -ex to no-lint-disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
JCZuurmond committed Nov 19, 2024
1 parent 348cb43 commit 464b4a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:

- name: Verify no lint disabled in the new code
run: |
set -ex
NEW_CODE=$(git diff origin/main..$(git branch --show-current) | grep -e '^+')
CHEAT=$(echo "${NEW_CODE}" | grep '# pylint: disable' | grep -v "CHEAT" | wc -c)
if [ "${CHEAT}" -ne 0 ]; then
Expand Down

0 comments on commit 464b4a6

Please sign in to comment.