mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
chore: Making the regex to catch cli reference strict by adding word boundary anchor
Right now the regex is over-matching and is returning true for references like these: from ..utils._client_labels_utils import EVAL_CLIENT_LABEL Co-authored-by: Ankur Sharma <ankusharma@google.com> PiperOrigin-RevId: 857255767
This commit is contained in:
committed by
Copybara-Service
parent
ea0934b993
commit
c222a45ef7
@@ -96,7 +96,7 @@ jobs:
|
||||
echo ""
|
||||
|
||||
set +e
|
||||
FILES_WITH_FORBIDDEN_IMPORT=$(grep -lE '^from.*cli.*import.*$' $CHANGED_FILES)
|
||||
FILES_WITH_FORBIDDEN_IMPORT=$(grep -lE '^from.*\bcli\b.*import.*$' $CHANGED_FILES)
|
||||
GREP_EXIT_CODE=$?
|
||||
set -e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user