Skip to content

Commit 10954bd

Browse files
committed
CI: exclude asv env directory from isort and tailing whitespace checks
1 parent e31b4f4 commit 10954bd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ci/code_checks.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
175175
set -o pipefail
176176
if [[ "$AZURE" == "true" ]]; then
177177
# we exclude all c/cpp files as the c/cpp files of pandas code base are tested when Linting .c and .h files
178-
! 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}'
178+
! 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}'
179179
else
180-
! grep -n '--exclude=*.'{svg,c,cpp,html} -RI "\s$" * | awk -F ":" '{print $1 ":" $2 ":Tailing whitespaces found: " $3}'
180+
! grep -n '--exclude=*.'{svg,c,cpp,html} --exclude-dir=env -RI "\s$" * | awk -F ":" '{print $1 ":" $2 ":Tailing whitespaces found: " $3}'
181181
fi
182182
RET=$(($RET + $?)) ; echo $MSG "DONE"
183183
fi

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ multi_line_output=4
113113
force_grid_wrap=0
114114
combine_as_imports=True
115115
force_sort_within_sections=True
116+
skip_glob=env,
116117
skip=
117118
pandas/core/api.py,
118119
pandas/core/frame.py,

0 commit comments

Comments
 (0)