question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unexpected line ending format

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
stefaneidellothcommented, Mar 25, 2022

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.

0reactions
MarcoGorellicommented, Mar 18, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found