Skip to content

Commit

Permalink
ran black
Browse files Browse the repository at this point in the history
  • Loading branch information
Mustaballer committed Jun 25, 2023
1 parent afd9810 commit 2211f78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openadapt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"SCRUB_CHAR": "*",
"SCRUB_LANGUAGE": "en",
# TODO support lists in getenv_fallback
"SCRUB_FILL_COLOR": 0x0000FF, # BGR format
"SCRUB_FILL_COLOR": 0x0000FF, # BGR format
"SCRUB_CONFIG_TRF": {
"nlp_engine_name": "spacy",
"models": [{"lang_code": "en", "model_name": "en_core_web_trf"}],
Expand Down Expand Up @@ -123,6 +123,7 @@ def getenv_fallback(var_name):
if not key.startswith("_") and key.isupper():
logger.info(f"{key}={val}")


def filter_log_messages(data):
"""
This function filters log messages by ignoring any message that contains a specific string.
Expand Down Expand Up @@ -154,4 +155,4 @@ def set_db_url(db_fname):
DB_FPATH = ROOT_DIRPATH / DB_FNAME
DB_URL = f"sqlite:///{DB_FPATH}"
logger.info(f"{DB_URL=}")
os.environ["DB_FNAME"] = db_fname
os.environ["DB_FNAME"] = db_fname

0 comments on commit 2211f78

Please sign in to comment.