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.
pylint
1 parent dd506e8 commit a7a483eCopy full SHA for a7a483e
.github/workflows/push.yml
@@ -61,3 +61,20 @@ jobs:
61
62
- name: Verify linting
63
run: hatch run verify
64
+
65
+ no-lint-disabled:
66
+ runs-on: ubuntu-latest
67
+ steps:
68
+ - name: Checkout
69
+ uses: actions/checkout@v3
70
+ with:
71
+ fetch-depth: 0
72
73
+ - name: Verify no lint disabled in the new code
74
+ run: |
75
+ NEW_CODE=$(git diff origin/main..$(git branch --show-current) | grep -e '^+')
76
+ CHEAT=$(echo "${NEW_CODE}" | grep '# pylint: disable')
77
+ if [ -n "${CHEAT}" ]; then
78
+ echo "Do not cheat the linter: ${CHEAT}"
79
+ exit 1
80
+ fi
0 commit comments