Unexpected line ending format
See original GitHub issueI use LF line endings in Jupyter Notebooks and the pylint option
expected-line-ending-format='LF'
Unfortunately, nbqa replaces LF line endings with CRLF line endings when converting the notebooks to *.py files. And then, I get unexpected pylint warnings.
Unexpected line ending format. There is 'CRLF' while it should be 'LF'. (unexpected-line-ending-format)
=> How can I tell nbqa to keep LF line endings on Windows 10?
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Results From Across the Web
unexpected-line-ending-format / C0328 - Pylint 2.16.0-dev ...
Message emitted: Unexpected line ending format. There is '%s' while it should be '%s'. Description: Used when there is different newline than expected....
Read more >C0328 (unexpected-line-ending-format) | pylint-errors
Used when there is different newline than expected. Related resources: Issue Tracker. This site is open source. Improve this page.
Read more >Git replacing LF with CRLF - windows - Stack Overflow
It appears to me that Git is converting the return format to match that of the running platform (Windows). CRLF is the default...
Read more >Configuring Git to handle line endings - GitHub Docs
Different operating systems handle line endings differently. When you're collaborating on projects with Git and GitHub, Git might produce unexpected results if, ...
Read more >How to Get Consistent Line Breaks in vs Code (LF vs CRLF)
This is typically due to a difference in line endings, especially the difference in LF vs. CRLF . Unix systems like Linux and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for asking back and sorry for the late reply. I decided to disable the line ending check for notebooks and closing the ticket is fine for me.
closing for now as there’s been no uptake / interest in this
however, anyone’s free to submit a PR if they want to see this feature in nbQA