python-trio / flake8-async

Highly opinionated linter for Trio code
https://flake8-async.readthedocs.io
MIT License
19 stars 2 forks source link

fix line endings to LF and add .gitattributes to enforce it in the future #64

Closed jakkdl closed 1 year ago

jakkdl commented 1 year ago

Fixes #62

Glorious diff, but only thing that matters is the .gitattributes file. The documentation and recommendations are quite confusing, with some proposing listing every single file extension, others saying you should set * text=auto eol=LF. But afaict this should be enough, and held up when testing it. I tried explicitly creating a file with CRLF, git warns when committing it, but I can push it just fine and it stays as CRLF on my local machine - but if i curl it from github it's LF. So in case one is working on a windows machine and some tool or editor insist on files being CRLF - I think this should work out for everybody.

Will branch future PR's from this, so make sure to merge this one first.