Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace exit(main()) with raise SystemExit(main()) #2103

Merged
merged 1 commit into from Oct 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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())