[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] 2022-03-27 14:41:11 +00:00
parent 1f10c59cd3
commit 0eae340e13
1 changed files with 4 additions and 2 deletions

View File

@ -647,10 +647,12 @@ class Session(nodes.FSCollector):
errors = []
for arg, collectors in self._notfound:
if cols:
errors.append(f"not found: {arg}\n(no name {arg!r} in any of {collectors!r})")
errors.append(
f"not found: {arg}\n(no name {arg!r} in any of {collectors!r})"
)
else:
errors.append(f"found no collectors for {arg}")
raise UsageError(*errors)
if not genitems:
items = rep.result