Skip to content

Commit

Permalink
Various bits of linting
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh committed Aug 2, 2024
1 parent 776b0d9 commit 915cdbe
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ontogpt/clients/llm_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __post_init__(self):
# Get appropriate API key for the model source
# and other details if needed
if self.model.startswith("ollama"):
self.api_key = "" # Don't need an API key
self.api_key = "" # Don't need an API key
if not self.api_key and not self.custom_llm_provider:
self.api_key = get_apikey_value("openai")
elif self.custom_llm_provider == "anthropic":
Expand Down
1 change: 0 additions & 1 deletion src/ontogpt/conf/synonymizer-conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ rules:
match: "(.*) food product"
match_scope: "FOODON"
replacement: "\\1"

3 changes: 2 additions & 1 deletion src/ontogpt/engines/generic_engine.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Synonym engine."""
"""Generic engine."""

import logging
from copy import deepcopy
from dataclasses import dataclass
Expand Down
2 changes: 1 addition & 1 deletion src/ontogpt/engines/pheno_engine.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Reasoner engine."""
"""Pheno engine."""

import json
import logging
Expand Down
1 change: 1 addition & 0 deletions src/ontogpt/io/json_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def eliminate_empty(obj: Any, preserve=False) -> Any:
else:
return obj


def dump_minimal_json(obj: Any, minimize=True, file: Optional[TextIO] = None) -> str:
"""Dump a JSON string, but eliminate Nones and empty lists and dicts."""
if not file:
Expand Down

0 comments on commit 915cdbe

Please sign in to comment.