[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-04-07 12:43:15 +00:00
parent 0038ea3561
commit a53835a3e0

View file

@ -1018,7 +1018,7 @@ def routes_command(sort: str, all_methods: bool) -> None:
for rule in rules for rule in rules
] ]
headers = ("Sub Domain","Endpoint", "Methods", "Rule") headers = ("Sub Domain", "Endpoint", "Methods", "Rule")
widths = ( widths = (
max(len(rule.subdomain) for rule in rules), max(len(rule.subdomain) for rule in rules),
max(len(rule.endpoint) for rule in rules), max(len(rule.endpoint) for rule in rules),
@ -1031,7 +1031,9 @@ def routes_command(sort: str, all_methods: bool) -> None:
click.echo(row.format(*("-" * width for width in widths))) click.echo(row.format(*("-" * width for width in widths)))
for rule, methods in zip(rules, rule_methods): for rule, methods in zip(rules, rule_methods):
click.echo(row.format(rule.subdomain, rule.endpoint, methods, rule.rule).rstrip()) click.echo(
row.format(rule.subdomain, rule.endpoint, methods, rule.rule).rstrip()
)
cli = FlaskGroup( cli = FlaskGroup(