mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
add sys.exit(main()) to file_contents_sorter.py
This commit is contained in:
parent
b7abd18ceb
commit
611a4443d7
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
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
from typing import IO
|
||||
from typing import Optional
|
||||
from typing import Sequence
|
||||
|
|
@ -53,3 +54,7 @@ def main(argv=None): # type: (Optional[Sequence[str]]) -> int
|
|||
retv |= ret_for_file
|
||||
|
||||
return retv
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue