Skip to content

Commit

Permalink
check-docstring-first applied to the files
Browse files Browse the repository at this point in the history
  • Loading branch information
lnxpy committed Mar 2, 2024
1 parent acab314 commit 49813e4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
5 changes: 2 additions & 3 deletions evadb/evadb_cmd_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@

from evadb.utils.logging_manager import logger

"""
To allow running evadb_server from any location
"""
# == To allow running evadb_server from any location ==

THIS_DIR = dirname(__file__)
EvaDB_CODE_DIR = abspath(join(THIS_DIR, ".."))
sys.path.append(EvaDB_CODE_DIR)
Expand Down
5 changes: 2 additions & 3 deletions evadb/evadb_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@

from psutil import process_iter

"""
To allow running evadb_server from any location
"""
# == To allow running evadb_server from any location ==

THIS_DIR = dirname(__file__)
EvaDB_CODE_DIR = abspath(join(THIS_DIR, ".."))
sys.path.append(EvaDB_CODE_DIR)
Expand Down
4 changes: 1 addition & 3 deletions evadb/optimizer/rules/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -1306,9 +1306,7 @@ def apply(self, before: LogicalVectorIndexScan, context: OptimizerContext):
yield after


"""
Rules to optimize Ray.
"""
# == Rules to optimize Ray. ==


def get_ray_env_dict():
Expand Down
7 changes: 3 additions & 4 deletions evadb/third_party/huggingface/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@
)
from evadb.utils.generic_utils import try_to_import_transformers

"""
We currently support the following tasks from HuggingFace.
Each task is mapped to the type of input it expects.
"""
# == We currently support the following tasks from HuggingFace. ==
# == Each task is mapped to the type of input it expects. ==

INPUT_TYPE_FOR_SUPPORTED_TASKS = {
"audio-classification": HFInputTypes.AUDIO,
"automatic-speech-recognition": HFInputTypes.AUDIO,
Expand Down

0 comments on commit 49813e4

Please sign in to comment.