mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 12:06:53 +00:00
add sys.exit(main()) to file_contents_sorter.py
This commit is contained in:
parent
9ce6b9facb
commit
1bfdf7f62c
1 changed files with 5 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ conflicts and keep the file nicely ordered.
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import sys
|
||||||
from typing import IO
|
from typing import IO
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from typing import Sequence
|
from typing import Sequence
|
||||||
|
|
@ -53,3 +54,7 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
|
||||||
retv |= ret_for_file
|
retv |= ret_for_file
|
||||||
|
|
||||||
return retv
|
return retv
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
sys.exit(main())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue