Skip to content

Commit

Permalink
Add pylint precommit hook
Browse files Browse the repository at this point in the history
Update pylint configuration to enable error E0401

Fix pylint errors

Add pylint precommit hook

Update pylint configuration to enable error E0401
  • Loading branch information
yoland68 committed May 14, 2024
1 parent a898966 commit f36388a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,10 @@ repos:
rev: 22.3.0
hooks:
- id: black
language_version: python3.9
language_version: python3.9
- repo: https://github.com/pylint-dev/pylint
rev: v2.16.2
hooks:
- id: pylint
args:
- --disable=R,C,W,E0401
2 changes: 1 addition & 1 deletion comfy_cli/command/custom_nodes/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions comfy_cli/env_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down

0 comments on commit f36388a

Please sign in to comment.