Skip to content

Commit

Permalink
[pre-commit.ci] Apply automatic pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 23, 2023
1 parent 695ade3 commit 81be0bc
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import logging
import json

import logging

logging.basicConfig(
level=logging.INFO,
format="%(asctime)s %(levelname)9s %(lineno)4s %(module)s: %(message)s"
format="%(asctime)s %(levelname)9s %(lineno)4s %(module)s: %(message)s",
)

logger = logging.getLogger(__name__)
Expand All @@ -15,10 +14,7 @@
def my_custom_exporter(args):
"""Custom exporter to log JupyterLab events to command line."""
logger.info(json.dumps(args.get("data")))
return {
"exporter": CUSTOM_EXPORTER_NAME,
"message": ""
}
return {"exporter": CUSTOM_EXPORTER_NAME, "message": ""}


c.JupyterLabPioneerApp.exporters = [
Expand All @@ -33,7 +29,7 @@ def my_custom_exporter(args):
"id": CUSTOM_EXPORTER_NAME
# add additional args for your exporter function here
},
}
},
]

c.JupyterLabPioneerApp.custom_exporter = {
Expand Down

0 comments on commit 81be0bc

Please sign in to comment.