mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
chore: move some rules from ruff -> pylint (#34292)
This commit is contained in:
committed by
GitHub
parent
efa8cb6fa4
commit
3f8472ca7b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user