Skip to content

Commit 611a444

Browse files
committed
add sys.exit(main()) to file_contents_sorter.py
1 parent b7abd18 commit 611a444

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pre_commit_hooks/file_contents_sorter.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from __future__ import print_function
1313

1414
import argparse
15+
import sys
1516
from typing import IO
1617
from typing import Optional
1718
from typing import Sequence
@@ -53,3 +54,7 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
5354
retv |= ret_for_file
5455

5556
return retv
57+
58+
59+
if __name__ == '__main__':
60+
sys.exit(main())

0 commit comments

Comments
 (0)