diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 29fca09..98f552a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,4 +3,10 @@ repos: rev: 22.3.0 hooks: - id: black - language_version: python3.9 \ No newline at end of file + language_version: python3.9 + - repo: https://github.com/pylint-dev/pylint + rev: v2.16.2 + hooks: + - id: pylint + args: + - --disable=R,C,W,E0401 diff --git a/comfy_cli/command/custom_nodes/command.py b/comfy_cli/command/custom_nodes/command.py index 21dc5b5..2e85888 100644 --- a/comfy_cli/command/custom_nodes/command.py +++ b/comfy_cli/command/custom_nodes/command.py @@ -762,7 +762,7 @@ def display_all_nodes(): @app.command("registry-install", help="Install a node from the registry", hidden=True) @tracking.track_command("node") -def install(node_id: str, version: Optional[str] = None): +def registry_install(node_id: str, version: Optional[str] = None): """ Install a node from the registry. Args: diff --git a/comfy_cli/env_checker.py b/comfy_cli/env_checker.py index 2a426ce..dc90a98 100644 --- a/comfy_cli/env_checker.py +++ b/comfy_cli/env_checker.py @@ -73,7 +73,7 @@ class EnvChecker(object): def __init__(self): self.virtualenv_path = None self.conda_env = None - self.python_version: sys._version_info = sys.version_info + self.python_version = sys.version_info self.check() def is_isolated_env(self): @@ -97,7 +97,6 @@ def check(self): if os.environ.get("CONDA_DEFAULT_ENV") else None ) - self.python_version = sys.version_info # TODO: use ui.display_table def fill_print_table(self):