Skip to content

Commit 50a18a9

Browse files
committed
chore(custom_checks): Skip binary files when checking for deprecated typing
1 parent b3d41ed commit 50a18a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extras/custom_checks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function check_do_not_use_builtin_random_in_tests() {
7272
}
7373

7474
function check_deprecated_typing() {
75-
if grep -R '\<typing .*\<import .*\<\(Tuple\|List\|Dict\|Set\|FrozenSet\|AbstractSet\|DefaultDict\|OrderedDict\)\>' "${SOURCE_DIRS[@]}"; then
75+
if grep -RI '\<typing .*\<import .*\<\(Tuple\|List\|Dict\|Set\|FrozenSet\|AbstractSet\|DefaultDict\|OrderedDict\)\>' "${SOURCE_DIRS[@]}"; then
7676
echo 'do not use typing.List/Tuple/Dict/... for type annotations use builtin list/tuple/dict/... instead'
7777
echo 'for more info check the PEP 585 doc: https://peps.python.org/pep-0585/'
7878
return 1

0 commit comments

Comments
 (0)