Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#87)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/python-jsonschema/check-jsonschema: 0.26.3 → 0.27.0](python-jsonschema/check-jsonschema@0.26.3...0.27.0)
- [github.com/psf/black: 23.7.0 → 23.9.1](psf/black@23.7.0...23.9.1)
- [github.com/astral-sh/ruff-pre-commit: v0.0.287 → v0.0.292](astral-sh/ruff-pre-commit@v0.0.287...v0.0.292)

* typing

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Steven Silvester <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and blink1073 authored Oct 4, 2023
1 parent cad58f1 commit 9eaf857
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.26.3
rev: 0.27.0
hooks:
- id: check-github-workflows

Expand All @@ -30,12 +30,12 @@ repos:
- id: mdformat

- repo: https://github.com/psf/black
rev: 23.7.0
rev: 23.9.1
hooks:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.287
rev: v0.0.292
hooks:
- id: ruff
args: ["--fix"]
2 changes: 1 addition & 1 deletion jupyter_events/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def register_event_schema(self, schema: SchemaType) -> None:
Get this registered schema using the EventLogger.schema.get() method.
"""

event_schema = self.schemas.register(schema)
event_schema = self.schemas.register(schema) # type:ignore[arg-type]
key = event_schema.id
self._modifiers[key] = set()
self._modified_listeners[key] = set()
Expand Down
4 changes: 2 additions & 2 deletions jupyter_events/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@
]
METASCHEMA_REGISTRY: Registry = resources @ Registry()

JUPYTER_EVENTS_SCHEMA_VALIDATOR = Draft7Validator( # type: ignore
JUPYTER_EVENTS_SCHEMA_VALIDATOR = Draft7Validator(
schema=EVENT_METASCHEMA,
registry=METASCHEMA_REGISTRY,
format_checker=draft7_format_checker,
)

JUPYTER_EVENTS_CORE_VALIDATOR = Draft7Validator( # type: ignore
JUPYTER_EVENTS_CORE_VALIDATOR = Draft7Validator(
schema=EVENT_CORE_SCHEMA,
registry=METASCHEMA_REGISTRY,
format_checker=draft7_format_checker,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ async def test_noop_emit():
# it doesn't return immediately. We'll use the
# MagicMock here to see if/when this method is called
# to ensure `emit` is returning when it should.
el.schemas.validate_event = MagicMock(name="validate_event")
el.schemas.validate_event = MagicMock(name="validate_event") # type:ignore[method-assign]

schema_id1 = "http://test/test"
schema1 = {
Expand Down

0 comments on commit 9eaf857

Please sign in to comment.