Skip to content

Commit a08e1f8

Browse files
authored
Update code_checks.sh to check for instances of os.remove (#37097)
1 parent b1dd20b commit a08e1f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ci/code_checks.sh

+4
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
248248
invgrep -RI --exclude=\*.{svg,c,cpp,html,js} --exclude-dir=env "\s$" *
249249
RET=$(($RET + $?)) ; echo $MSG "DONE"
250250
unset INVGREP_APPEND
251+
252+
MSG='Check code for instances of os.remove' ; echo $MSG
253+
invgrep -R --include="*.py*" --exclude "common.py" --exclude "test_writers.py" --exclude "test_store.py" -E "os\.remove" pandas/tests/
254+
RET=$(($RET + $?)) ; echo $MSG "DONE"
251255
fi
252256

253257
### CODE ###

0 commit comments

Comments
 (0)