Merge pull request #1740 from nicost/SummaryMetadata #99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- uses: pre-commit/action@v3.0.0 | |
- name: check for incorrect newlines | |
run: | | |
# See if anything changes when we let Git enforce .gitattributes | |
git add --renormalize . | |
if [ -z "$(git status --porcelain=v1 2>/dev/null)" ]; then | |
echo "No files changed by renormalization" | |
else | |
echo "Files changed by renormalization (probably have CRLF):" | |
git status --porcelain=v1 | |
exit 1 | |
fi |