Skip to content

Merge pull request #1740 from nicost/SummaryMetadata #99

Merge pull request #1740 from nicost/SummaryMetadata

Merge pull request #1740 from nicost/SummaryMetadata #99

Workflow file for this run

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