From 7286483112d0d6db07c60622913e55498123a2b8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 5 Dec 2024 09:30:16 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tools/schemacode/src/bidsschematools/schema.py | 1 + tools/schemacode/src/bidsschematools/utils.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/schemacode/src/bidsschematools/schema.py b/tools/schemacode/src/bidsschematools/schema.py index 0cefc725aa..55bb501e0f 100644 --- a/tools/schemacode/src/bidsschematools/schema.py +++ b/tools/schemacode/src/bidsschematools/schema.py @@ -22,6 +22,7 @@ lgr = utils.get_logger() + class BIDSSchemaError(Exception): """Errors indicating invalid values in the schema itself""" diff --git a/tools/schemacode/src/bidsschematools/utils.py b/tools/schemacode/src/bidsschematools/utils.py index 0aa6d71f45..441e8986eb 100644 --- a/tools/schemacode/src/bidsschematools/utils.py +++ b/tools/schemacode/src/bidsschematools/utils.py @@ -33,7 +33,7 @@ def get_logger(name=None): logger = logging.getLogger("bidsschematools" + (".%s" % name if name else "")) # Basic settings for output, for now just basic set_logger_level(logger, os.environ.get("BIDS_SCHEMA_LOG_LEVEL", logging.INFO)) - format="%(asctime)-15s [%(levelname)8s] %(message)s" + format = "%(asctime)-15s [%(levelname)8s] %(message)s" if len(logger.handlers) == 0: # add a handler if there isn't one ch = logging.StreamHandler() @@ -45,7 +45,6 @@ def get_logger(name=None): return logger - def set_logger_level(lgr, level): """Set the logger level.