Skip to content

Commit 6ce72c8

Browse files
committed
Run sphinx-lint against latest sources (merged)
1 parent ea15b77 commit 6ce72c8

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

completion.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ def get_completion(
4242
translators_link = translators.get_link(clone_path, repo, branch)
4343
translators_data = TranslatorsData(translators_number, translators_link)
4444
break
45-
with TemporaryDirectory() as tmpdir:
46-
completion = potodo.merge_and_scan_path(
47-
clone_path,
48-
pot_path=Path(clones_dir, 'cpython/Doc/build/gettext'),
49-
merge_path=Path(tmpdir),
50-
hide_reserved=False,
51-
api_url='',
52-
).completion
45+
path_for_merge = Path(clones_dir, 'rebased_translations', repo)
46+
completion = potodo.merge_and_scan_path(
47+
clone_path,
48+
pot_path=Path(clones_dir, 'cpython/Doc/build/gettext'),
49+
merge_path=path_for_merge,
50+
hide_reserved=False,
51+
api_url='',
52+
).completion
5353

5454
if completion:
5555
# Fetch commit from before 30 days ago and checkout

sphinx_lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ def store_and_count_failures(clones_dir: str, repo: str, language_code: str) ->
1414

1515
def yield_failures(clones_dir: str, repo: str) -> Iterator[str]:
1616
enabled_checkers = [c for c in checkers.all_checkers.values() if c.enabled]
17-
for path in Path(clones_dir, 'translations', repo).rglob('*.po'):
17+
for path in Path(clones_dir, 'rebased_translations', repo).rglob('*.po'):
1818
yield check_file(path.as_posix(), enabled_checkers)

0 commit comments

Comments
 (0)