From 331357ddf891055075cce3e08b4665efa7d20daf Mon Sep 17 00:00:00 2001 From: Adrien Coulier Date: Fri, 20 Sep 2024 10:34:02 +0200 Subject: [PATCH] Check for CRLF line endings in CI --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1948dd..95280f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,12 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Check for CRLF line endings + run: > + ! find . -type f -name "*.py" + | grep -v '\.git/' + | xargs file + | grep CRLF - uses: actions/setup-python@v5 with: python-version: "3.12"