mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Merge pull request #2104 from pre-commit/all-repos_autofix_exit-main-2
exit(main()) -> raise SystemExit(main()) pt2
This commit is contained in:
commit
c6a1bc144a
5 changed files with 5 additions and 5 deletions
|
|
@ -25,4 +25,4 @@ def main() -> int:
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
exit(main())
|
||||
raise SystemExit(main())
|
||||
|
|
|
|||
|
|
@ -80,4 +80,4 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
exit(main())
|
||||
raise SystemExit(main())
|
||||
|
|
|
|||
|
|
@ -68,4 +68,4 @@ def main() -> int:
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
exit(main())
|
||||
raise SystemExit(main())
|
||||
|
|
|
|||
|
|
@ -106,4 +106,4 @@ def main() -> int:
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
exit(main())
|
||||
raise SystemExit(main())
|
||||
|
|
|
|||
|
|
@ -45,4 +45,4 @@ def main() -> int:
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
exit(main())
|
||||
raise SystemExit(main())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue