Add YAPF style + ignore, and format tracked Python files
This commit is contained in:
@@ -73,7 +73,9 @@ def _parse_mode_and_strip_args(args: List[str]) -> Tuple[Optional[str], List[str
|
||||
val = la.split("=", 1)[1]
|
||||
if val and val not in ("0", "false", "no", "off"):
|
||||
if mode and mode != "gui":
|
||||
raise ValueError("Conflicting mode flags: found both 'gui' and 'cli'")
|
||||
raise ValueError(
|
||||
"Conflicting mode flags: found both 'gui' and 'cli'"
|
||||
)
|
||||
mode = "gui"
|
||||
i += 1
|
||||
continue
|
||||
@@ -89,7 +91,9 @@ def _parse_mode_and_strip_args(args: List[str]) -> Tuple[Optional[str], List[str
|
||||
val = la.split("=", 1)[1]
|
||||
if val and val not in ("0", "false", "no", "off"):
|
||||
if mode and mode != "cli":
|
||||
raise ValueError("Conflicting mode flags: found both 'gui' and 'cli'")
|
||||
raise ValueError(
|
||||
"Conflicting mode flags: found both 'gui' and 'cli'"
|
||||
)
|
||||
mode = "cli"
|
||||
i += 1
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user