Skip to content

Commit edd70e8

Browse files
committed
Linting
1 parent 1fac496 commit edd70e8

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

texlive/github_handler.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
from os import environ
44
from pathlib import Path
55
from typing import Any, AnyStr, Dict, List, Union
6-
from .logger import logger
6+
77
from github import Github
88
from github.GithubException import GithubException, RateLimitExceededException
99
from github.GitRelease import GitRelease
1010
from github.GitReleaseAsset import GitReleaseAsset
1111
from github.Repository import Repository
1212

13+
from .logger import logger
14+
1315
REPO = os.getenv("REPO", "msys2/msys2-texlive")
1416

1517
_PathLike = Union[os.PathLike, AnyStr]
@@ -37,7 +39,7 @@ def get_credentials(use_pat: bool = False) -> Dict[str, Any]:
3739

3840
def get_github(use_pat: bool = False) -> Github:
3941
kwargs = get_credentials(use_pat)
40-
kwargs['per_page'] = 100
42+
kwargs["per_page"] = 100
4143
gh = Github(**kwargs)
4244
return gh
4345

texlive/main.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
cleanup,
3535
create_tar_archive,
3636
get_file_archive_name,
37+
get_file_name_for_extra_files,
3738
get_url_for_package,
3839
write_contents_file,
39-
get_file_name_for_extra_files
4040
)
4141
from .verify_files import check_sha512_sums, validate_gpg
4242

@@ -271,7 +271,7 @@ def main_laucher(
271271
tmpdir = Path(tmdir)
272272

273273
# first copy texlive.tlpdb
274-
shutil.copy(Path('texlive.tlpdb'), tmpdir)
274+
shutil.copy(Path("texlive.tlpdb"), tmpdir)
275275

276276
# create other required files.
277277
fmts_file = directory / (package + ".fmts")
@@ -298,13 +298,13 @@ def main_laucher(
298298
create_language_lua(needed_pkgs, language_lua_file)
299299
logger.info("Created %s", language_lua_file)
300300
shutil.copy(language_lua_file, tmpdir)
301-
302-
final_destination = directory / get_file_name_for_extra_files()
301+
302+
final_destination = directory / get_file_name_for_extra_files(package)
303303
# now create a tar archive
304-
logger.info("Creating %s",final_destination)
304+
logger.info("Creating %s", final_destination)
305305
create_tar_archive(tmpdir, final_destination)
306306

307-
logger.info("Uploading %s",final_destination)
307+
logger.info("Uploading %s", final_destination)
308308
upload_asset(final_destination)
309309

310310
cleanup()

texlive/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def get_file_archive_name(package: str) -> str:
1414
version = time.strftime("%Y%m%d")
1515
return f"{package}-{version}.tar.xz"
1616

17+
1718
def get_file_name_for_extra_files(package: str) -> str:
1819
return f"{package}-extra-files.tar.xz"
1920

0 commit comments

Comments
 (0)