file-contents-sorter
adds an extra blank line if the file to be sorted is empty
#935
Labels
file-contents-sorter
adds an extra blank line if the file to be sorted is empty
#935
I am on
v.4.4.0
, Python3.11.4
, macOS Ventura13.4.1
.My
.pre-commit-config.yaml
:The files are intentionally empty – I'm in the planning stage, they are just placeholders for requriements1.
To the point:
file-contents-sorter
adds an extra blank to them, what results in a confict withend-of-file-fixer
. I am not sure if that is the expected behavior... Updatingargs
doesn't have any effect.Footnotes
Yes, I know that I can use
requirements-txt-fixer
particularly for requirements. 😄 I will do. For that issue it doesn't matter. ↩The text was updated successfully, but these errors were encountered: