mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2025-08-14 17:31:28 +08:00
replace exit(main()) with raise SystemExit(main())
Committed via https://github.com/asottile/all-repos
This commit is contained in:
@ -57,4 +57,4 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
exit(main())
|
||||
raise SystemExit(main())
|
||||
|
Reference in New Issue
Block a user