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 lines_before_imports appending lines after comments #1861

Merged
merged 1 commit into from Dec 4, 2021

Conversation

legau
Copy link
Contributor

@legau legau commented Dec 1, 2021

Resolves #1854

Empty lines just before import sections were always written back in the output.

@codecov
Copy link

codecov bot commented Dec 1, 2021

Codecov Report

Merging #1861 (8c3f257) into main (54d9c9b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1861   +/-   ##
=======================================
  Coverage   99.83%   99.83%           
=======================================
  Files          38       38           
  Lines        3046     3054    +8     
  Branches      725      728    +3     
=======================================
+ Hits         3041     3049    +8     
  Misses          1        1           
  Partials        4        4           

@timothycrosley timothycrosley merged commit 4e23fcf into PyCQA:main Dec 4, 2021
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.

lines_before_imports adds additional new lines
2 participants