a49f812a96
py39+
...
Committed via https://github.com/asottile/all-repos
2024-10-11 19:30:07 -04:00
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
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
39ab2ed85e
replace exit(main()) with raise SystemExit(main())
...
Committed via https://github.com/asottile/all-repos
2021-10-23 13:23:50 -04:00
7e393476bd
Add --unique arg to file-contents-sorter
2020-10-25 12:18:09 -07:00
0c760253f3
Add a way to do case-insensitive sorting via file-contents-sorter.
2020-08-26 21:55:22 -04:00
c14b3aa54f
sed -i s/whitelist/allowlist/g
2020-06-17 08:27:11 -07:00
c8d9fb183f
Fix C407
2020-05-18 17:34:38 -04:00
f5c42a050b
pre-commit-hooks: python3.6+
2020-02-05 11:22:18 -08:00
611a4443d7
add sys.exit(main()) to file_contents_sorter.py
2019-08-03 20:34:39 +02:00
030bfac7e4
Apply typing to all of pre-commit-hooks
2019-01-31 20:09:15 -08:00
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
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
4c421e2ed1
Put argument parsing back into main()
2017-06-25 10:22:10 -07:00
b941d0e6df
Respond to review feedback
2017-06-23 14:58:24 -07:00
9425c5d6b5
First commit of file-contents-sorter precommit hook
2017-06-23 00:33:13 -07:00