Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 1, 2024
1 parent 13c6247 commit 14142cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qgispluginci/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ def create_archive(
if not Path(f"{parameters.plugin_path}/LICENSE").is_file():
parent_license = Path(f"{parameters.plugin_path}/../LICENSE")
if parent_license.is_file():
shutil.copy(str(parent_license.resolve()), f"{parameters.plugin_path}/LICENSE")
shutil.copy(
str(parent_license.resolve()), f"{parameters.plugin_path}/LICENSE"
)
parent_folder_license_copied = True
with tarfile.open(top_tar_file, mode="a") as tt:
tt.add(f"{parameters.plugin_path}/LICENSE")
Expand Down Expand Up @@ -278,7 +280,7 @@ def create_archive(

if parent_folder_license_copied:
os.remove(f"{parameters.plugin_path}/LICENSE")

logger.debug("-" * 40)
logger.debug(f"Files in ZIP archive ({archive_name}):")
with zipfile.ZipFile(file=archive_name, mode="r") as zf:
Expand Down

0 comments on commit 14142cb

Please sign in to comment.