Skip to content

Commit b591d61

Browse files
[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](astral-sh/ruff-pre-commit@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 <[email protected]>
1 parent 8e77a4a commit b591d61

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929
- id: black
3030

3131
- repo: https://github.com/charliermarsh/ruff-pre-commit
32-
rev: v0.0.237
32+
rev: v0.0.254
3333
hooks:
3434
- id: ruff
3535
args: ["--fix"]

notebook/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
class NotebookBaseHandler(ExtensionHandlerJinjaMixin, ExtensionHandlerMixin, JupyterHandler):
3333
"""The base notebook API handler."""
3434

35-
def get_page_config(self): # noqa:C901
35+
def get_page_config(self):
3636
"""Get the page config."""
3737
config = LabConfig()
3838
app = self.extensionapp

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ dependencies = [
145145
"black[jupyter]==22.10.0",
146146
"mdformat>0.7",
147147
"mdformat-gfm>=0.3.5",
148-
"ruff==0.0.237"
148+
"ruff==0.0.254"
149149
]
150150
detached = true
151151
[tool.hatch.envs.lint.scripts]

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def mkdir(tmp_path, *parts):
3232

3333

3434
@pytest.fixture
35-
def make_notebook_app(
35+
def make_notebook_app( # noqa PLR0913
3636
jp_root_dir,
3737
jp_template_dir,
3838
app_settings_dir,

ui-tests/test/jupyter_server_config.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
import jupyterlab
66

77
c: Any
8-
c.ServerApp.port = 8888 # noqa
9-
c.ServerApp.port_retries = 0 # noqa
10-
c.ServerApp.open_browser = False # noqa
8+
c.ServerApp.port = 8888
9+
c.ServerApp.port_retries = 0
10+
c.ServerApp.open_browser = False
1111

12-
c.ServerApp.root_dir = mkdtemp(prefix="galata-test-") # noqa
13-
c.ServerApp.token = "" # noqa
14-
c.ServerApp.password = "" # noqa
15-
c.ServerApp.disable_check_xsrf = True # noqa
12+
c.ServerApp.root_dir = mkdtemp(prefix="galata-test-")
13+
c.ServerApp.token = ""
14+
c.ServerApp.password = ""
15+
c.ServerApp.disable_check_xsrf = True
1616

17-
c.JupyterNotebookApp.expose_app_in_browser = True # noqa
17+
c.JupyterNotebookApp.expose_app_in_browser = True
1818
c.LabServerApp.extra_labextensions_path = str(Path(jupyterlab.__file__).parent / "galata")

0 commit comments

Comments
 (0)