Reputation: 12300
I use pylint for JupyterLab via jupyterlab-lsp on Windows and get warnings about the line ending format:
There is 'CRLF' while it should be 'LF'
I opened the notebook file in a text editor ensured that the line ending is LF.
I also tried to search for \r\n in the notebook and did not find wrong line endings.
The warning is still present.
I also tried to find a JupyterLab setting to change the line ending to LF. There does not seem to be a setting and LF (\n) seems to be the default.
=> The pylint warning seems to be a false positive, maybe related to the way/workflow pylint is applied by jupyterlab-lsp (issue when transformed from notebook to a script file? only a wild guess)?
=> How can I fix the check?
=> If the check really is fine: how can I fix the line endings inside the cells?
Upvotes: 1
Views: 170
Reputation: 4282
You can check the documentation here, either the pylint configuration can help i.e.
[FORMAT]
expected-line-ending-format=LF
Or the link to the way to deal with line ending using git
Upvotes: 0