Skip to content

Commit 7c523cc

Browse files
MarcoGorelliJulianWgs
authored andcommitted
🔥 remove no-longer-necessary checks (pandas-dev#37138)
1 parent 785fbd4 commit 7c523cc

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

ci/code_checks.sh

-16
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,6 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
180180
invgrep -r -E --include '*.py' "[[:space:]] pytest.raises" pandas/tests/
181181
RET=$(($RET + $?)) ; echo $MSG "DONE"
182182

183-
MSG='Check for python2-style file encodings' ; echo $MSG
184-
invgrep -R --include="*.py" --include="*.pyx" -E "# -\*- coding: utf-8 -\*-" pandas scripts
185-
RET=$(($RET + $?)) ; echo $MSG "DONE"
186-
187-
MSG='Check for python2-style super usage' ; echo $MSG
188-
invgrep -R --include="*.py" -E "super\(\w*, (self|cls)\)" pandas
189-
RET=$(($RET + $?)) ; echo $MSG "DONE"
190-
191183
MSG='Check for use of builtin filter function' ; echo $MSG
192184
invgrep -R --include="*.py" -P '(?<!def)[\(\s]filter\(' pandas
193185
RET=$(($RET + $?)) ; echo $MSG "DONE"
@@ -206,10 +198,6 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
206198
invgrep -R --include="*.py" --include="*.pyx" -E "(DEPRECATED|DEPRECATE|Deprecated)(:|,|\.)" pandas
207199
RET=$(($RET + $?)) ; echo $MSG "DONE"
208200

209-
MSG='Check for python2 new-style classes and for empty parentheses' ; echo $MSG
210-
invgrep -R --include="*.py" --include="*.pyx" -E "class\s\S*\((object)?\):" pandas asv_bench/benchmarks scripts
211-
RET=$(($RET + $?)) ; echo $MSG "DONE"
212-
213201
MSG='Check for backticks incorrectly rendering because of missing spaces' ; echo $MSG
214202
invgrep -R --include="*.rst" -E "[a-zA-Z0-9]\`\`?[a-zA-Z0-9]" doc/source/
215203
RET=$(($RET + $?)) ; echo $MSG "DONE"
@@ -259,10 +247,6 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
259247
invgrep -R --include=*.{py,pyx} '\.__class__' pandas
260248
RET=$(($RET + $?)) ; echo $MSG "DONE"
261249

262-
MSG='Check for use of xrange instead of range' ; echo $MSG
263-
invgrep -R --include=*.{py,pyx} 'xrange' pandas
264-
RET=$(($RET + $?)) ; echo $MSG "DONE"
265-
266250
MSG='Check that no file in the repo contains trailing whitespaces' ; echo $MSG
267251
INVGREP_APPEND=" <- trailing whitespaces found"
268252
invgrep -RI --exclude=\*.{svg,c,cpp,html,js} --exclude-dir=env "\s$" *

0 commit comments

Comments
 (0)