Skip to content

Commit 00d2062

Browse files
[pre-commit.ci] pre-commit autoupdate (#71)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/python-jsonschema/check-jsonschema: 0.21.0 → 0.22.0](python-jsonschema/check-jsonschema@0.21.0...0.22.0) - [github.com/psf/black: 23.1.0 → 23.3.0](psf/black@23.1.0...23.3.0) - [github.com/charliermarsh/ruff-pre-commit: v0.0.254 → v0.0.260](astral-sh/ruff-pre-commit@v0.0.254...v0.0.260) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Address remaining lint issues --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kevin Bates <[email protected]>
1 parent 100a292 commit 00d2062

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,6 @@ venv.bak/
105105

106106
.DS_Store
107107
.vscode/
108+
109+
# pycharm
110+
.idea/

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
- id: trailing-whitespace
2121

2222
- repo: https://github.com/python-jsonschema/check-jsonschema
23-
rev: 0.21.0
23+
rev: 0.22.0
2424
hooks:
2525
- id: check-github-workflows
2626

@@ -30,12 +30,12 @@ repos:
3030
- id: mdformat
3131

3232
- repo: https://github.com/psf/black
33-
rev: 23.1.0
33+
rev: 23.3.0
3434
hooks:
3535
- id: black
3636

3737
- repo: https://github.com/charliermarsh/ruff-pre-commit
38-
rev: v0.0.254
38+
rev: v0.0.260
3939
hooks:
4040
- id: ruff
4141
args: ["--fix"]

jupyter_events/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
version_info = tuple(parts)
1818

1919
kernel_protocol_version_info = (5, 3)
20-
kernel_protocol_version = "%s.%s" % kernel_protocol_version_info
20+
kernel_protocol_version = "{}.{}".format(*kernel_protocol_version_info)

jupyter_events/logger.py

+1
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ def emit(
363363
"this was not intentional, please register the schema using the "
364364
"`register_event_schema` method.",
365365
SchemaNotRegistered,
366+
stacklevel=2,
366367
)
367368
return None
368369

pyproject.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ dependencies = ["mypy>=0.990"]
9797
test = "mypy --install-types --non-interactive {args:.}"
9898

9999
[tool.hatch.envs.lint]
100-
dependencies = ["black[jupyter]==23.1.0", "mdformat>0.7", "ruff==0.0.254"]
100+
dependencies = ["black[jupyter]==23.3.0", "mdformat>0.7", "ruff==0.0.260"]
101101
detached = true
102102
[tool.hatch.envs.lint.scripts]
103103
style = [
@@ -188,6 +188,9 @@ unfixable = [
188188
# F841 Local variable `t` is assigned to but never used
189189
# S101 Use of `assert` detected
190190
"tests/*" = ["B011", "F841", "C408", "E402", "T201", "B007", "N802", "F841", "S101"]
191+
# C901 Function is too complex
192+
"jupyter_events/logger.py" = ["C901"] # `emit` is too complex (12 > 10)
193+
191194

192195
[tool.interrogate]
193196
ignore-init-module=true

0 commit comments

Comments
 (0)