Skip to content

Commit

Permalink
Merge pull request #2103 from pre-commit/all-repos_autofix_systemexit…
Browse files Browse the repository at this point in the history
…-main

replace exit(main()) with raise SystemExit(main())
  • Loading branch information
asottile committed Oct 23, 2021
2 parents 663a766 + c8cf74d commit 26a05b5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pre_commit/__main__.py
Expand Up @@ -2,4 +2,4 @@


if __name__ == '__main__':
exit(main())
raise SystemExit(main())
2 changes: 1 addition & 1 deletion pre_commit/languages/pygrep.py
Expand Up @@ -124,4 +124,4 @@ def main(argv: Optional[Sequence[str]] = None) -> int:


if __name__ == '__main__':
exit(main())
raise SystemExit(main())
2 changes: 1 addition & 1 deletion pre_commit/main.py
Expand Up @@ -411,4 +411,4 @@ def main(argv: Optional[Sequence[str]] = None) -> int:


if __name__ == '__main__':
exit(main())
raise SystemExit(main())
2 changes: 1 addition & 1 deletion pre_commit/meta_hooks/check_hooks_apply.py
Expand Up @@ -39,4 +39,4 @@ def main(argv: Optional[Sequence[str]] = None) -> int:


if __name__ == '__main__':
exit(main())
raise SystemExit(main())
2 changes: 1 addition & 1 deletion pre_commit/meta_hooks/check_useless_excludes.py
Expand Up @@ -77,4 +77,4 @@ def main(argv: Optional[Sequence[str]] = None) -> int:


if __name__ == '__main__':
exit(main())
raise SystemExit(main())
2 changes: 1 addition & 1 deletion pre_commit/meta_hooks/identity.py
Expand Up @@ -13,4 +13,4 @@ def main(argv: Optional[Sequence[str]] = None) -> int:


if __name__ == '__main__':
exit(main())
raise SystemExit(main())

0 comments on commit 26a05b5

Please sign in to comment.