mirror of https://github.com/zulip/zulip.git
tools: Add a run() method to tools/lint-all.
This commit is contained in:
parent
747744ad61
commit
3c40157195
|
@ -7,6 +7,7 @@ import sys
|
||||||
import optparse
|
import optparse
|
||||||
import subprocess
|
import subprocess
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import lister
|
import lister
|
||||||
from typing import cast, Any, Callable, Dict, List, Optional
|
from typing import cast, Any, Callable, Dict, List, Optional
|
||||||
|
@ -16,6 +17,8 @@ except ImportError as e:
|
||||||
print("If you are using Vagrant, you can `vagrant ssh` to enter the Vagrant guest.")
|
print("If you are using Vagrant, you can `vagrant ssh` to enter the Vagrant guest.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
def run():
|
||||||
|
# type: () -> None
|
||||||
parser = optparse.OptionParser()
|
parser = optparse.OptionParser()
|
||||||
parser.add_option('--full',
|
parser.add_option('--full',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
|
@ -456,3 +459,6 @@ try:
|
||||||
finally:
|
finally:
|
||||||
# Restore normal terminal colors
|
# Restore normal terminal colors
|
||||||
sys.stdout.write('\x1B[0m')
|
sys.stdout.write('\x1B[0m')
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
run()
|
||||||
|
|
Loading…
Reference in New Issue