From f1dfa20933ed60a3ee4d4350d4a3b63f837cfc5f Mon Sep 17 00:00:00 2001 From: MomIsBestFriend <> Date: Wed, 25 Dec 2019 22:26:22 +0200 Subject: [PATCH] CI: Added unwanted patterns test case --- ci/code_checks.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 0ac15327494e6..46ace2dd9d70e 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -200,6 +200,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then invgrep -R --include="*.py" --include="*.pyx" -E 'class.*:\n\n( )+"""' . RET=$(($RET + $?)) ; echo $MSG "DONE" + MSG='Check for use of {foo!r} instead of {repr(foo)}' ; echo $MSG + invgrep -R --include=*.{py,pyx} '!r}' pandas + RET=$(($RET + $?)) ; echo $MSG "DONE" + MSG='Check for use of comment-based annotation syntax' ; echo $MSG invgrep -R --include="*.py" -P '# type: (?!ignore)' pandas RET=$(($RET + $?)) ; echo $MSG "DONE"