Skip to content

Commit

Permalink
fix: make check-import-linter-config.sh ignore line ending changes
Browse files Browse the repository at this point in the history
This avoids CRLF vs LF issues on Windows.
  • Loading branch information
agateau-gg committed Jan 8, 2025
1 parent e8e7b24 commit a990355
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/check-import-linter-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ $ git add .importlinter
'

cd "$(dirname $0)/.."
if ! diff --color -u .importlinter <(pdm run ./scripts/generate-import-linter-config.py) ; then
if ! diff --color --ignore-all-space --unified \
.importlinter <(pdm run ./scripts/generate-import-linter-config.py)
then
printf "${ERROR_MSG}"
exit 1
fi

0 comments on commit a990355

Please sign in to comment.