Skip to content

Commit 3fbf07e

Browse files
chore: update pre-commit hooks (#1409)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent da948f0 commit 3fbf07e

File tree

100 files changed

+126
-59
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+126
-59
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
- id: trailing-whitespace
2222

2323
- repo: https://github.com/python-jsonschema/check-jsonschema
24-
rev: 0.27.4
24+
rev: 0.28.1
2525
hooks:
2626
- id: check-github-workflows
2727

@@ -52,7 +52,7 @@ repos:
5252
- id: rst-inline-touching-normal
5353

5454
- repo: https://github.com/pre-commit/mirrors-mypy
55-
rev: "v1.8.0"
55+
rev: "v1.9.0"
5656
hooks:
5757
- id: mypy
5858
files: jupyter_server
@@ -61,7 +61,7 @@ repos:
6161
["traitlets>=5.13", "jupyter_core>=5.5", "jupyter_client>=8.5"]
6262

6363
- repo: https://github.com/astral-sh/ruff-pre-commit
64-
rev: v0.2.0
64+
rev: v0.3.5
6565
hooks:
6666
- id: ruff
6767
types_or: [python, jupyter]
@@ -70,7 +70,7 @@ repos:
7070
types_or: [python, jupyter]
7171

7272
- repo: https://github.com/scientific-python/cookie
73-
rev: "2024.01.24"
73+
rev: "2024.03.10"
7474
hooks:
7575
- id: sp-repo-review
7676
additional_dependencies: ["repo-review[cli]"]

examples/authorization/jupyter_nbclassic_readonly_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Nbclassic read only auth example."""
2+
23
from jupyter_server.auth import Authorizer
34

45

examples/authorization/jupyter_nbclassic_rw_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Nbclassic read/write auth example."""
2+
23
from jupyter_server.auth import Authorizer
34

45

examples/authorization/jupyter_temporary_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Nbclassic temporary server auth example."""
2+
23
from jupyter_server.auth import Authorizer
34

45

examples/identity/system_password/jupyter_server_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Jupyter server system password identity provider example."""
2+
23
import pwd
34
from getpass import getuser
45

examples/simple/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""Pytest configuration."""
2+
23
pytest_plugins = ["jupyter_server.pytest_plugin"]

examples/simple/jupyter_server_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Configuration file for jupyter-server extensions."""
2+
23
# ------------------------------------------------------------------------------
34
# Application(SingletonConfigurable) configuration
45
# ------------------------------------------------------------------------------
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""Jupyter server config."""
2+
23
c.SimpleApp11.ignore_js = True # type:ignore[name-defined]

examples/simple/jupyter_simple_ext1_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Jupyter server config."""
2+
23
c.SimpleApp1.configA = "ConfigA from file" # type:ignore[name-defined]
34
c.SimpleApp1.configB = "ConfigB from file" # type:ignore[name-defined]
45
c.SimpleApp1.configC = "ConfigC from file" # type:ignore[name-defined]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""Jupyter server config."""
2+
23
c.SimpleApp2.configD = "ConfigD from file" # type:ignore[name-defined]

0 commit comments

Comments
 (0)