Skip to content

Commit 1c07d42

Browse files
committed
CI: remove duplicated code check pandas-dev#36642
1 parent c296a93 commit 1c07d42

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -48,31 +48,7 @@ fi
4848
### LINTING ###
4949
if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
5050

51-
echo "black --version"
52-
black --version
53-
54-
MSG='Checking black formatting' ; echo $MSG
55-
black . --check
56-
RET=$(($RET + $?)) ; echo $MSG "DONE"
57-
5851
# `setup.cfg` contains the list of error codes that are being ignored in flake8
59-
60-
echo "flake8 --version"
61-
flake8 --version
62-
63-
# pandas/_libs/src is C code, so no need to search there.
64-
MSG='Linting .py code' ; echo $MSG
65-
flake8 --format="$FLAKE8_FORMAT" .
66-
RET=$(($RET + $?)) ; echo $MSG "DONE"
67-
68-
MSG='Linting .pyx and .pxd code' ; echo $MSG
69-
flake8 --format="$FLAKE8_FORMAT" pandas --append-config=flake8/cython.cfg
70-
RET=$(($RET + $?)) ; echo $MSG "DONE"
71-
72-
MSG='Linting .pxi.in' ; echo $MSG
73-
flake8 --format="$FLAKE8_FORMAT" pandas/_libs --append-config=flake8/cython-template.cfg
74-
RET=$(($RET + $?)) ; echo $MSG "DONE"
75-
7652
echo "flake8-rst --version"
7753
flake8-rst --version
7854

@@ -132,19 +108,6 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
132108
fi
133109
RET=$(($RET + $?)) ; echo $MSG "DONE"
134110

135-
echo "isort --version-number"
136-
isort --version-number
137-
138-
# Imports - Check formatting using isort see setup.cfg for settings
139-
MSG='Check import format using isort' ; echo $MSG
140-
ISORT_CMD="isort --quiet --check-only pandas asv_bench scripts web"
141-
if [[ "$GITHUB_ACTIONS" == "true" ]]; then
142-
eval $ISORT_CMD | awk '{print "##[error]" $0}'; RET=$(($RET + ${PIPESTATUS[0]}))
143-
else
144-
eval $ISORT_CMD
145-
fi
146-
RET=$(($RET + $?)) ; echo $MSG "DONE"
147-
148111
fi
149112

150113
### PATTERNS ###
@@ -395,15 +358,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
395358

396359
fi
397360

398-
### DEPENDENCIES ###
399-
if [[ -z "$CHECK" || "$CHECK" == "dependencies" ]]; then
400-
401-
MSG='Check that requirements-dev.txt has been generated from environment.yml' ; echo $MSG
402-
$BASE_DIR/scripts/generate_pip_deps_from_conda.py --compare --azure
403-
RET=$(($RET + $?)) ; echo $MSG "DONE"
404-
405-
fi
406-
407361
### TYPING ###
408362
if [[ -z "$CHECK" || "$CHECK" == "typing" ]]; then
409363

@@ -415,5 +369,4 @@ if [[ -z "$CHECK" || "$CHECK" == "typing" ]]; then
415369
RET=$(($RET + $?)) ; echo $MSG "DONE"
416370
fi
417371

418-
419372
exit $RET

0 commit comments

Comments
 (0)