Skip to content

Commit 2041697

Browse files
authored
Merge pull request #19 from dannystaple/exclude-venv-folders
Exclude venv folders from checks
2 parents 5aa193c + 9cbf270 commit 2041697

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

check.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ done
4040
inform "Checking $LIBRARY_NAME $LIBRARY_VERSION\n"
4141

4242
inform "Checking for trailing whitespace..."
43-
if grep -IUrn --color "[[:blank:]]$" --exclude-dir=dist --exclude-dir=.tox --exclude-dir=.git --exclude=PKG-INFO; then
43+
if grep -IUrn --color "[[:blank:]]$" --exclude-dir=dist -exclude-dir=.venv --exclude-dir=.tox --exclude-dir=.git --exclude=PKG-INFO; then
4444
warning "Trailing whitespace found!"
4545
exit 1
4646
else
@@ -49,7 +49,7 @@ fi
4949
printf "\n"
5050

5151
inform "Checking for DOS line-endings..."
52-
if grep -lIUrn --color $'\r' --exclude-dir=dist --exclude-dir=.tox --exclude-dir=.git --exclude=Makefile; then
52+
if grep -lIUrn --color $'\r' --exclude-dir=dist --exclude-dir=.tox -exclude-dir=.venv --exclude-dir=.git --exclude=Makefile; then
5353
warning "DOS line-endings found!"
5454
exit 1
5555
else

0 commit comments

Comments
 (0)