[pre-commit.ci] pre-commit autoupdate (#6762)

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.237 → v0.0.254](https://github.com/charliermarsh/ruff-pre-commit/compare/v0.0.237...v0.0.254)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update ruff

* Lint conftest

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jeremy Tuloup <jeremy.tuloup@gmail.com>
pull/6764/head
pre-commit-ci[bot] 3 years ago committed by GitHub
parent 8e77a4aaef
commit b591d61ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,7 +29,7 @@ repos:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.237
rev: v0.0.254
hooks:
- id: ruff
args: ["--fix"]

@ -32,7 +32,7 @@ version = __version__
class NotebookBaseHandler(ExtensionHandlerJinjaMixin, ExtensionHandlerMixin, JupyterHandler):
"""The base notebook API handler."""
def get_page_config(self): # noqa:C901
def get_page_config(self):
"""Get the page config."""
config = LabConfig()
app = self.extensionapp

@ -145,7 +145,7 @@ dependencies = [
"black[jupyter]==22.10.0",
"mdformat>0.7",
"mdformat-gfm>=0.3.5",
"ruff==0.0.237"
"ruff==0.0.254"
]
detached = true
[tool.hatch.envs.lint.scripts]

@ -32,7 +32,7 @@ labextensions_dir = pytest.fixture(lambda tmp_path: mkdir(tmp_path, "labextensio
@pytest.fixture
def make_notebook_app(
def make_notebook_app( # noqa PLR0913
jp_root_dir,
jp_template_dir,
app_settings_dir,

@ -5,14 +5,14 @@ from typing import Any
import jupyterlab
c: Any
c.ServerApp.port = 8888 # noqa
c.ServerApp.port_retries = 0 # noqa
c.ServerApp.open_browser = False # noqa
c.ServerApp.port = 8888
c.ServerApp.port_retries = 0
c.ServerApp.open_browser = False
c.ServerApp.root_dir = mkdtemp(prefix="galata-test-") # noqa
c.ServerApp.token = "" # noqa
c.ServerApp.password = "" # noqa
c.ServerApp.disable_check_xsrf = True # noqa
c.ServerApp.root_dir = mkdtemp(prefix="galata-test-")
c.ServerApp.token = ""
c.ServerApp.password = ""
c.ServerApp.disable_check_xsrf = True
c.JupyterNotebookApp.expose_app_in_browser = True # noqa
c.JupyterNotebookApp.expose_app_in_browser = True
c.LabServerApp.extra_labextensions_path = str(Path(jupyterlab.__file__).parent / "galata")

Loading…
Cancel
Save