Roel Adriaans
fdbaeb81fa
Fix blank lines
...
As stated in the documentation: `Note that this hook WILL remove blank lines`
Previously this hook would always add blank a blank line.
With this fix, if the file is empty, a newline will not be added, and multpline blanklines in a file will be removed.
Fixes #935
2023-08-05 22:56:46 +02:00
Anthony Sottile
8f6152921e
drop python3.6 support
...
python 3.6 reached end of life on 2021-12-23
Committed via https://github.com/asottile/all-repos
2022-01-15 19:24:05 -05:00
Daniel Hoherd
7e393476bd
Add --unique arg to file-contents-sorter
2020-10-25 12:18:09 -07:00
Julian Berman
0c760253f3
Add a way to do case-insensitive sorting via file-contents-sorter.
2020-08-26 21:55:22 -04:00
Max Rozentsveyg
f35bfed79e
Don't use LocalPath.strpath
2020-05-20 12:08:42 -04:00
Anthony Sottile
2a902e0a07
Use asottile/add-trailing-comma
2017-07-12 18:58:30 -07:00
Daniel Gallagher
7102e0c8a3
file-contents-sorter should add newline at end of files missing newlines
...
Make an explicit 'else' path for readability
2017-06-26 08:10:32 -07:00
Daniel Gallagher
7cfec24f77
Fix bug with the file-contents-sorter hook when processing file that does not end in a newline
2017-06-25 14:40:03 -07:00
Daniel Gallagher
89ddf17888
Inline tuple parameterized test tuple
2017-06-25 09:48:16 -07:00
Daniel Gallagher
05d9c8c805
Make tests pass
2017-06-23 15:10:10 -07:00
Daniel Gallagher
b941d0e6df
Respond to review feedback
2017-06-23 14:58:24 -07:00
Daniel Gallagher
4af7451154
Update README.md about file-contents-sorter
2017-06-23 11:32:05 -07:00
Daniel Gallagher
9425c5d6b5
First commit of file-contents-sorter precommit hook
2017-06-23 00:33:13 -07:00