Skip to content

Commit

Permalink
[CI] Check for whitespace errors
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Aug 6, 2023
1 parent a23f2da commit e299379
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/linters.yml
Expand Up @@ -14,6 +14,8 @@ jobs:
steps:
- uses: actions/checkout@v3
name: Checkout the repository
with:
fetch-depth: 100
- name: Setup Python
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -42,3 +44,10 @@ jobs:
fi
done
exit $RETCODE
- name: Whitespace errors
if: success() || failure()
run: |
git config --global core.autocrlf false
git config --global core.whitespace \
-cr-at-eol,tab-in-indent,blank-at-eol,blank-at-eof
git diff --check ${{ github.event.pull_request.base.sha }}

0 comments on commit e299379

Please sign in to comment.