diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 51df779341ed5..658c2bc50e87b 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -175,9 +175,9 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then set -o pipefail if [[ "$AZURE" == "true" ]]; then # we exclude all c/cpp files as the c/cpp files of pandas code base are tested when Linting .c and .h files - ! grep -n '--exclude=*.'{svg,c,cpp,html} -RI "\s$" * | awk -F ":" '{print "##vso[task.logissue type=error;sourcepath=" $1 ";linenumber=" $2 ";] Tailing whitespaces found: " $3}' + ! grep -n '--exclude=*.'{svg,c,cpp,html} --exclude-dir=env -RI "\s$" * | awk -F ":" '{print "##vso[task.logissue type=error;sourcepath=" $1 ";linenumber=" $2 ";] Tailing whitespaces found: " $3}' else - ! grep -n '--exclude=*.'{svg,c,cpp,html} -RI "\s$" * | awk -F ":" '{print $1 ":" $2 ":Tailing whitespaces found: " $3}' + ! grep -n '--exclude=*.'{svg,c,cpp,html} --exclude-dir=env -RI "\s$" * | awk -F ":" '{print $1 ":" $2 ":Tailing whitespaces found: " $3}' fi RET=$(($RET + $?)) ; echo $MSG "DONE" fi diff --git a/setup.cfg b/setup.cfg index 54593009ac1ee..160784a8b5b65 100644 --- a/setup.cfg +++ b/setup.cfg @@ -113,6 +113,7 @@ multi_line_output=4 force_grid_wrap=0 combine_as_imports=True force_sort_within_sections=True +skip_glob=env, skip= pandas/core/api.py, pandas/core/frame.py,