Bump databrickslabs/sandbox from acceptance/v0.3.0 to 0.3.1 #106
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: no-cheat | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
no-pylint-disable: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Verify no lint is disabled in the new code | |
run: | | |
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 | |
echo "Do not cheat the linter: ${CHEAT}" | |
exit 1 | |
fi |