Skip to content

Commit 4ee8059

Browse files
committed
CI: Exclude asv benchmark envs from flake8 checks
1 parent 6db8d19 commit 4ee8059

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ci/code_checks.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
3131
echo "flake8 --version"
3232
flake8 --version
3333

34+
# Add asv env directory to flake8 default exclude list
35+
FLAKE8_EXCLUDES=".svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg,env"
36+
3437
# pandas/_libs/src is C code, so no need to search there.
3538
MSG='Linting .py code' ; echo $MSG
36-
flake8 .
39+
flake8 --exclude $FLAKE8_EXCLUDES .
3740
RET=$(($RET + $?)) ; echo $MSG "DONE"
3841

3942
MSG='Linting .pyx code' ; echo $MSG

0 commit comments

Comments
 (0)