|
25 | 25 | generation_time = datetime.now(timezone.utc) |
26 | 26 |
|
27 | 27 | with TemporaryDirectory() as clones_dir: |
28 | | - Repo.clone_from(f'https://github.com/python/devguide.git', devguide_dir := Path(clones_dir, 'devguide'), depth=1) |
| 28 | + Repo.clone_from( |
| 29 | + 'https://github.com/python/devguide.git', |
| 30 | + devguide_dir := Path(clones_dir, 'devguide'), |
| 31 | + depth=1, |
| 32 | + ) |
29 | 33 | latest_branch = branches_from_devguide(devguide_dir)[0] |
30 | 34 | Repo.clone_from( |
31 | | - f'https://github.com/python/cpython.git', Path(clones_dir, 'cpython'), depth=1, branch=latest_branch |
| 35 | + 'https://github.com/python/cpython.git', |
| 36 | + Path(clones_dir, 'cpython'), |
| 37 | + depth=1, |
| 38 | + branch=latest_branch, |
32 | 39 | ) |
33 | 40 | subprocess.run(['make', '-C', Path(clones_dir, 'cpython/Doc'), 'venv'], check=True) |
34 | | - subprocess.run(['make', '-C', Path(clones_dir, 'cpython/Doc'), 'gettext'], check=True) |
| 41 | + subprocess.run( |
| 42 | + ['make', '-C', Path(clones_dir, 'cpython/Doc'), 'gettext'], check=True |
| 43 | + ) |
35 | 44 | switcher_languages = list(switcher.get_languages()) |
36 | 45 | for language, repo in repositories.get_languages_and_repos(devguide_dir): |
37 | 46 | if repo: |
|
108 | 117 | """ |
109 | 118 | ) |
110 | 119 |
|
111 | | -output = template.render(completion_progress=completion_progress, generation_time=generation_time) |
| 120 | +output = template.render( |
| 121 | + completion_progress=completion_progress, generation_time=generation_time |
| 122 | +) |
112 | 123 |
|
113 | | -with open("index.html", "w") as file: |
| 124 | +with open('index.html', 'w') as file: |
114 | 125 | file.write(output) |
0 commit comments