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 12, 2024
1 parent e339772 commit db67a16
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion jupyter_events/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from datetime import datetime, timezone

from jsonschema import ValidationError
from pathlib import PurePath
from pythonjsonlogger import jsonlogger
from traitlets import Dict, Instance, Set, default
from traitlets.config import Config, LoggingConfigurable
Expand Down
6 changes: 4 additions & 2 deletions jupyter_events/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations


class JupyterEventsVersionWarning(UserWarning):
"""Emitted when an event schema version is an `int` when it should be `str`.
"""
"""Emitted when an event schema version is an `int` when it should be `str`."""
2 changes: 1 addition & 1 deletion jupyter_events/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
from __future__ import annotations

import pathlib
import warnings
from typing import Any

import jsonschema
from jsonschema import Draft7Validator, ValidationError
from referencing import Registry
from referencing.jsonschema import DRAFT7
import warnings

from . import yaml
from .utils import JupyterEventsVersionWarning
Expand Down

0 comments on commit db67a16

Please sign in to comment.