Skip to content

Commit

Permalink
update import sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-huang committed Mar 26, 2024
1 parent aa9bed1 commit 8aff56e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libs/community/langchain_community/llms/bigdl_llm.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import logging
from typing import Any, Optional

from langchain_community.llms.ipex_llm import IpexLLM
from langchain_core.language_models.llms import LLM

import logging

logger = logging.getLogger(__name__)

Check failure on line 8 in libs/community/langchain_community/llms/bigdl_llm.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.8

Ruff (I001)

langchain_community/llms/bigdl_llm.py:1:1: I001 Import block is un-sorted or un-formatted

Check failure on line 8 in libs/community/langchain_community/llms/bigdl_llm.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.11

Ruff (I001)

langchain_community/llms/bigdl_llm.py:1:1: I001 Import block is un-sorted or un-formatted

class BigdlLLM(IpexLLM):
Expand Down
3 changes: 2 additions & 1 deletion libs/community/langchain_community/llms/ipex_llm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import logging
from typing import Any, List, Mapping, Optional

from langchain_core.callbacks import CallbackManagerForLLMRun
Expand All @@ -7,6 +6,8 @@

DEFAULT_MODEL_ID = "gpt2"

import logging

Check failure on line 9 in libs/community/langchain_community/llms/ipex_llm.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.8

Ruff (E402)

langchain_community/llms/ipex_llm.py:9:1: E402 Module level import not at top of file

Check failure on line 9 in libs/community/langchain_community/llms/ipex_llm.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.11

Ruff (E402)

langchain_community/llms/ipex_llm.py:9:1: E402 Module level import not at top of file

logger = logging.getLogger(__name__)


Expand Down

0 comments on commit 8aff56e

Please sign in to comment.