lint: Rename --verbose to --verbose-timing.

This commit is contained in:
Aman Agrawal
2019-06-18 18:57:10 +05:30
committed by Tim Abbott
parent dcd46f1c11
commit 426a222b7e
3 changed files with 5 additions and 4 deletions

View File

@@ -132,8 +132,9 @@ lint checks against files that are modified in your git repo. Most of the
Generally, a good workflow is to run with `--modified` when you are iterating on Generally, a good workflow is to run with `--modified` when you are iterating on
the code, and then run without that option right before committing new code. the code, and then run without that option right before committing new code.
If you need to troubleshoot the linters, there is a `--verbose` option that If you need to troubleshoot the linters, there is a `--verbose-timing`
can give you clues about which linters may be running slow, for example. option that can give you clues about which linters may be running
slow, for example.
### Lint checks ### Lint checks

View File

@@ -80,7 +80,7 @@ def run():
logging.basicConfig(format="%(asctime)s %(message)s") logging.basicConfig(format="%(asctime)s %(message)s")
logger = logging.getLogger() logger = logging.getLogger()
if args.verbose: if args.verbose_timing:
logger.setLevel(logging.INFO) logger.setLevel(logging.INFO)
else: else:
logger.setLevel(logging.WARNING) logger.setLevel(logging.WARNING)

View File

@@ -20,7 +20,7 @@ def add_default_linter_arguments(parser):
parser.add_argument('--modified', '-m', parser.add_argument('--modified', '-m',
action='store_true', action='store_true',
help='Only check modified files') help='Only check modified files')
parser.add_argument('--verbose', '-v', parser.add_argument('--verbose-timing', '-vt',
action='store_true', action='store_true',
help='Print verbose timing output') help='Print verbose timing output')
parser.add_argument('targets', parser.add_argument('targets',