mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
git mv pre_commit/run.py pre_commit/main.py
This commit is contained in:
parent
13c1b5295c
commit
111ed02938
3 changed files with 6 additions and 7 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import argparse
|
||||
import sys
|
||||
|
||||
from pre_commit import color
|
||||
from pre_commit import commands
|
||||
|
|
@ -8,7 +7,7 @@ from pre_commit.util import entry
|
|||
|
||||
|
||||
@entry
|
||||
def run(argv):
|
||||
def main(argv):
|
||||
parser = argparse.ArgumentParser()
|
||||
|
||||
subparsers = parser.add_subparsers(dest='command')
|
||||
|
|
@ -77,4 +76,4 @@ def run(argv):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(run())
|
||||
exit(main())
|
||||
Loading…
Add table
Add a link
Reference in a new issue