Skip to content

Commit f5bb2a7

Browse files
committed
chore: lint fix
Signed-off-by: habeck <habeck@us.ibm.com>
1 parent c0f2835 commit f5bb2a7

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

cpex/tools/catalog.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,18 @@
1212
import json
1313
import logging
1414
import os
15+
import shutil
1516
import subprocess
1617
import sys
18+
import tarfile
19+
import tempfile
1720
import tomllib
21+
import uuid
22+
import zipfile
1823
from pathlib import Path
1924
from typing import Any, Optional
20-
import uuid
2125

2226
import httpx
23-
import shutil
24-
import tarfile
25-
import tempfile
26-
import zipfile
27-
2827
import yaml
2928
from github import Auth, Github
3029
from packaging.version import InvalidVersion, Version
@@ -637,7 +636,7 @@ def install_folder_via_pip(self, manifest: PluginManifest, verify_integrity: boo
637636
raise RuntimeError("PluginManifest.monorepo can not be None.")
638637
try:
639638
repo_url = f"git+{manifest.monorepo.package_source}"
640-
639+
641640
plugin_path = None
642641
# Check manifest kind BEFORE installing
643642
if manifest.kind == "isolated_venv":
@@ -902,7 +901,6 @@ def _download_monorepo_folder_to_temp(
902901
shutil.rmtree(temp_dir, ignore_errors=True)
903902
raise RuntimeError(f"Unexpected error downloading {package_name}: {str(e)}") from e
904903

905-
906904
def _download_package_to_temp(
907905
self, package_name: str, version_constraint: str | None, use_test: bool = False, verify_integrity: bool = True
908906
) -> Path:

cpex/tools/cli.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def update_plugins_config_yaml(manifest: PluginManifest):
314314
)
315315
if plugin_configs.plugins is None:
316316
plugin_configs.plugins = []
317-
if plugin_configs.plugin_dirs is None or len(plugin_configs.plugin_dirs)==0:
317+
if plugin_configs.plugin_dirs is None or len(plugin_configs.plugin_dirs) == 0:
318318
catalog_settings = get_catalog_settings()
319319
plugin_configs.plugin_dirs = [f"{catalog_settings.FOLDER}"]
320320
plugin_configs.plugins.append(plugin_config)
@@ -480,7 +480,9 @@ def _parse_pypi_source(source: str) -> tuple[str, Optional[str]]:
480480
return package_name, version_constraint
481481

482482

483-
def _finalize_installation(manifest: PluginManifest, install_type: str, catalog: PluginCatalog, plugin_path: Path | None = None):
483+
def _finalize_installation(
484+
manifest: PluginManifest, install_type: str, catalog: PluginCatalog, plugin_path: Path | None = None
485+
):
484486
"""Common finalization steps for plugin installation.
485487
486488
Args:

cpex/tools/plugin_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def update(
9696
else:
9797
raise ValueError(f"Invalid installation type: {installation_type}")
9898

99-
installation_path = plugin_path if plugin_path is not None else find_package_path(manifest.name)
99+
installation_path = plugin_path if plugin_path is not None else find_package_path(manifest.name)
100100

101101
ipi: InstalledPluginInfo = InstalledPluginInfo(
102102
name=manifest.name,

0 commit comments

Comments
 (0)