Skip to content

Commit c6ae209

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 823f0d9 commit c6ae209

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sphinx_lint.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77

88
def store_and_count_failures(clones_dir: str, repo: str, language_code: str) -> int:
99
failed_checks = list(chain.from_iterable(yield_failures(clones_dir, repo)))
10-
prefix = f'{Path(clones_dir, 'rebased_translations', repo)}/'
11-
log = '\n'.join(map(lambda check: check.removeprefix(prefix), map(str, failed_checks)))
10+
prefix = f'{Path(clones_dir, "rebased_translations", repo)}/'
11+
log = '\n'.join(
12+
map(lambda check: check.removeprefix(prefix), map(str, failed_checks))
13+
)
1214
filepath = Path(f'build/warnings-lint-{language_code}.txt')
1315
filepath.write_text(log)
1416
return len(failed_checks)

0 commit comments

Comments
 (0)