Skip to content

Fix lines_before_imports appending lines after comments#1861

Merged
timothycrosley merged 1 commit intoPyCQA:mainfrom
legau:linesbef
Dec 4, 2021
Merged

Fix lines_before_imports appending lines after comments#1861
timothycrosley merged 1 commit intoPyCQA:mainfrom
legau:linesbef

Conversation

@legau
Copy link
Copy Markdown
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
Copy Markdown

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