chore: move some rules from ruff -> pylint (#34292)

This commit is contained in:
Maxime Beauchemin
2025-07-24 09:40:49 -07:00
committed by GitHub
parent efa8cb6fa4
commit 3f8472ca7b
18 changed files with 34 additions and 56 deletions

View File

@@ -105,7 +105,8 @@ repos:
- |
TARGET_BRANCH=${GITHUB_BASE_REF:-master}
git fetch origin "$TARGET_BRANCH"
files=$(git diff --name-only --diff-filter=ACM origin/"$TARGET_BRANCH"..HEAD | grep '^superset/.*\.py$' || true)
BASE=$(git merge-base origin/"$TARGET_BRANCH" HEAD)
files=$(git diff --name-only --diff-filter=ACM "$BASE"..HEAD | grep '^superset/.*\.py$' || true)
if [ -n "$files" ]; then
pylint --rcfile=.pylintrc --load-plugins=superset.extensions.pylint $files
else