Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 5, 2024
1 parent c2f20d7 commit 7286483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions tools/schemacode/src/bidsschematools/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

lgr = utils.get_logger()


class BIDSSchemaError(Exception):
"""Errors indicating invalid values in the schema itself"""

Expand Down
3 changes: 1 addition & 2 deletions tools/schemacode/src/bidsschematools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -45,7 +45,6 @@ def get_logger(name=None):
return logger



def set_logger_level(lgr, level):
"""Set the logger level.
Expand Down

0 comments on commit 7286483

Please sign in to comment.