File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 2222 sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
2323 task --version
2424
25+ - name : Check for CRLF line endings
26+ run : |
27+ task list-crlf
28+
2529 - name : Verify CHANGELOG.md was updated
2630 run : |
2731 task check-changelog
Original file line number Diff line number Diff line change 4444 validate :
4545 desc : Runs all checks and updates the docu. It is recommended to do this before making a commit.
4646 cmds :
47+ - task : list-crlf
4748 - task : check-changelog
4849 - task : check-version
4950 - task : tests
@@ -65,6 +66,17 @@ tasks:
6566 - pdoc -o docs pedantic
6667 silent : true
6768
69+ list-crlf :
70+ desc : List all Python files with CRLF line endings
71+ silent : true
72+ cmds :
73+ - |
74+ files=$(find . -type d -name ".*" ! -name "." -prune -o -name "*.py" -type f -exec grep -Iq . {} \; -and -exec grep -l $'\r' {} \;)
75+ if [ -n "$files" ]; then
76+ echo "$files"
77+ exit 1
78+ fi
79+
6880 check-changelog :
6981 desc : Fails if CHANGELOG.md was not modified compared to master
7082 silent : true
You can’t perform that action at this time.
0 commit comments