Skip to content

Commit e5cd750

Browse files
committed
Run precommit
1 parent 51d8324 commit e5cd750

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
# clean-up
2-

main.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
import yaml
21
import os
32
import traceback
4-
import tempfile
5-
import shutil
63

7-
from datetime import datetime
84
from subprocess import Popen, PIPE
95
from pathlib import Path
106
from typing import Optional, Union
11-
from crowdin_api import CrowdinClient # type: ignore
127
from github import Github, Auth
138
from dotenv import load_dotenv
149

@@ -145,12 +140,17 @@ def clean_up_branches(
145140
g = Github(auth=auth)
146141
branches = g.get_repo(translations_repo).get_branches()
147142
branch_names = [branch.name for branch in branches]
148-
branch_names.remove("main")
143+
branch_names.remove("main")
149144
for branch in branch_names:
150-
if branch.startswith(("content-sync-", "l10n_main", "add/translators-file", "add/status-file")):
145+
if branch.startswith(
146+
("content-sync-", "l10n_main", "add/translators-file", "add/status-file")
147+
):
151148
print(f"### Deleting branch {branch}")
152149
run(["git", "branch", "-d", branch], cwd=base_translations_path)
153-
run(["git", "push", "origin", "--delete", branch], cwd=base_translations_path)
150+
run(
151+
["git", "push", "origin", "--delete", branch],
152+
cwd=base_translations_path,
153+
)
154154

155155

156156
def main() -> None:

0 commit comments

Comments
 (0)