Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix line ending #197

Merged
merged 6 commits into from May 31, 2023
Merged

fix line ending #197

merged 6 commits into from May 31, 2023

Conversation

maxbachmann
Copy link
Contributor

@maxbachmann maxbachmann commented May 10, 2023

by default on file writes the line ending is replaced by os.linesep, so our own line endings do not persist. This can be fixed by passing the appropriate line ending.


Fixes: #202

@codecov
Copy link

codecov bot commented May 29, 2023

Codecov Report

Merging #197 (93d96ae) into master (e0233f4) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #197   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           28        28           
  Lines         2879      2880    +1     
=========================================
+ Hits          2879      2880    +1     
Impacted Files Coverage Δ
pycln/utils/iou.py 100.00% <100.00%> (ø)
tests/test_iou.py 100.00% <100.00%> (ø)

hadialqattan and others added 6 commits May 29, 2023 19:29
wby default on file writes the line ending is replaced by os.linesep, so our own line endings do not persist. This can be fixed by passing the appropriate line ending.
@codeclimate
Copy link

codeclimate bot commented May 29, 2023

Code Climate has analyzed commit 93d96ae and detected 0 issues on this pull request.

View more on Code Climate.

@hadialqattan
Copy link
Owner

@maxbachmann I've finalized the PR, if you don't mind, could you please verify that this fix works?

Thanks a lot for supporting the project.

@hadialqattan hadialqattan merged commit 2abea1e into hadialqattan:master May 31, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Pycln does not preserve the original line-break format (CRLF/LF)
2 participants