Skip to content

Commit a172c67

Browse files
committed
remove cmd formatting code
1 parent 5bf704d commit a172c67

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

scripts/validate_docstrings.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ def main(
492492
)
493493
argparser.add_argument(
494494
"--ignore_errors",
495+
default=None,
495496
action="append",
496497
nargs=2,
497498
metavar=("function", "error_codes"),
@@ -508,19 +509,6 @@ def main(
508509
args.ignore_errors = {function: error_codes.split(",")
509510
for function, error_codes
510511
in args.ignore_errors}
511-
else:
512-
args.ignore_errors = None
513-
func_to_errors = {}
514-
for error, funcs in args.ignore_errors.items():
515-
for func in funcs:
516-
if func_to_errors.get(func, None) is None:
517-
func_to_errors[func] = []
518-
func_to_errors[func].append(error)
519-
param = " PARAMETERS+=(\\\n"
520-
for func in sorted(func_to_errors.keys()):
521-
errors = sorted(func_to_errors[func])
522-
param += f" --ignore_errors {func} {','.join(errors)}\\\n"
523-
param += ")\n"
524512

525513
sys.exit(
526514
main(args.function,

0 commit comments

Comments
 (0)