forked from micro-manager/micro-manager
-
Notifications
You must be signed in to change notification settings - Fork 10
31 lines (26 loc) · 738 Bytes
/
Copy pathlint.yml
File metadata and controls
31 lines (26 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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