We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 823f0d9 commit c6ae209Copy full SHA for c6ae209
sphinx_lint.py
@@ -7,8 +7,10 @@
7
8
def store_and_count_failures(clones_dir: str, repo: str, language_code: str) -> int:
9
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)))
+ prefix = f'{Path(clones_dir, "rebased_translations", repo)}/'
+ log = '\n'.join(
12
+ map(lambda check: check.removeprefix(prefix), map(str, failed_checks))
13
+ )
14
filepath = Path(f'build/warnings-lint-{language_code}.txt')
15
filepath.write_text(log)
16
return len(failed_checks)
0 commit comments