mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
lint: Make --fix a default arg for zulint.
Since the check for `--fix` is in `zulint/command.py`, we should keep it as an arg for zulint.
This commit is contained in:
@@ -22,9 +22,6 @@ def run():
|
|||||||
parser.add_argument('--full',
|
parser.add_argument('--full',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help='Check some things we typically ignore')
|
help='Check some things we typically ignore')
|
||||||
parser.add_argument('--fix',
|
|
||||||
action='store_true',
|
|
||||||
help='Automatically fix problems where supported')
|
|
||||||
add_default_linter_arguments(parser)
|
add_default_linter_arguments(parser)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,9 @@ def add_default_linter_arguments(parser):
|
|||||||
parser.add_argument('--verbose', '-v',
|
parser.add_argument('--verbose', '-v',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
help='Print verbose output where available')
|
help='Print verbose output where available')
|
||||||
|
parser.add_argument('--fix',
|
||||||
|
action='store_true',
|
||||||
|
help='Automatically fix problems where supported')
|
||||||
|
|
||||||
def split_arg_into_list(arg):
|
def split_arg_into_list(arg):
|
||||||
# type: (str) -> List[str]
|
# type: (str) -> List[str]
|
||||||
|
|||||||
Reference in New Issue
Block a user