We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26e77e1 commit 80ebbe9Copy full SHA for 80ebbe9
1 file changed
.github/workflows/check-file-contents.yml
@@ -96,7 +96,7 @@ jobs:
96
echo ""
97
98
set +e
99
- FILES_WITH_FORBIDDEN_IMPORT=$(grep -lE '^from.*cli.*import.*$' $CHANGED_FILES)
+ FILES_WITH_FORBIDDEN_IMPORT=$(grep -lE '^from\s+([^ ]*\.)?cli(\s|\.)' $CHANGED_FILES)
100
GREP_EXIT_CODE=$?
101
set -e
102
@@ -110,4 +110,4 @@ jobs:
110
fi
111
else
112
echo "✅ No relevant Python files found."
113
- fi
+ fi
0 commit comments