This can be especially when repository is used on Windows with git's core.autocrlf set to true as then some files can have CRLF line endings locally even though they're checked out into git with LF endings. This mixing can therefore cause codespell to not ignore some lines if the line endings in --exclude-file differ from line endings in the file with spelling issue.