diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8fd878c..b7876aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: repos: # Autoformat and linting, misc. details - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: forbid-new-submodules - id: end-of-file-fixer @@ -26,18 +26,18 @@ repos: # Autoformat: Python code - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.4.2 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.9 + rev: v0.4.7 hooks: - id: ruff args: ['--fix'] - repo: https://github.com/pre-commit/mirrors-eslint - rev: v9.0.0-alpha.0 + rev: v9.4.0 hooks: - id: eslint files: \.tsx?$ diff --git a/glue_jupyterlab/glue_ydoc.py b/glue_jupyterlab/glue_ydoc.py index 08b73ef..2302583 100644 --- a/glue_jupyterlab/glue_ydoc.py +++ b/glue_jupyterlab/glue_ydoc.py @@ -154,9 +154,9 @@ def observe(self, callback: Callable[[str, Any], None]): self._subscriptions[self._ytabs] = self._ytabs.observe_deep( partial(callback, "tabs") ) - self._subscriptions[ - self._yprivate_messages - ] = self._yprivate_messages.observe_deep(partial(callback, "private_messages")) + self._subscriptions[self._yprivate_messages] = ( + self._yprivate_messages.observe_deep(partial(callback, "private_messages")) + ) def get_tab_names(self) -> List[str]: return list(self._ytabs.keys()) diff --git a/ui-tests/jupyter_server_test_config.py b/ui-tests/jupyter_server_test_config.py index 5d881d4..023e9c9 100644 --- a/ui-tests/jupyter_server_test_config.py +++ b/ui-tests/jupyter_server_test_config.py @@ -4,6 +4,7 @@ opens the server to the world and provide access to JupyterLab JavaScript objects through the global window variable. """ + from jupyterlab.galata import configure_jupyter_server configure_jupyter_server(c) # noqa