Skip to content

Commit ed7f9c2

Browse files
[pre-commit.ci] pre-commit autoupdate (#947)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/charliermarsh/ruff-pre-commit: v0.0.260 → v0.0.263](astral-sh/ruff-pre-commit@v0.0.260...v0.0.263) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * sync deps and run lint * fix rtd * rtd --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Steven Silvester <[email protected]>
1 parent c4bb03c commit ed7f9c2

File tree

7 files changed

+12
-9
lines changed

7 files changed

+12
-9
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ repos:
3535
- id: black
3636

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

.readthedocs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ version: 2
22
sphinx:
33
configuration: docs/conf.py
44
python:
5-
version: 3.8
65
install:
76
# install jupyter-client itself
87
- method: pip
98
path: ".[docs]"
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.11"

jupyter_client/launcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def launch_kernel(
152152
try:
153153
# Allow to use ~/ in the command or its arguments
154154
cmd = [os.path.expanduser(s) for s in cmd]
155-
proc = Popen(cmd, **kwargs)
155+
proc = Popen(cmd, **kwargs) # noqa
156156
except Exception as ex:
157157
try:
158158
msg = "Failed to run command:\n{}\n PATH={!r}\n with kwargs:\n{!r}\n"

jupyter_client/localinterfaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _get_output(cmd):
3636
if os.name == "nt":
3737
startupinfo = subprocess.STARTUPINFO() # type:ignore[attr-defined]
3838
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW # type:ignore[attr-defined]
39-
p = Popen(cmd, stdout=PIPE, stderr=PIPE, startupinfo=startupinfo)
39+
p = Popen(cmd, stdout=PIPE, stderr=PIPE, startupinfo=startupinfo) # noqa
4040
stdout, stderr = p.communicate()
4141
if p.returncode:
4242
msg = "Failed to run {}: {}".format(cmd, stderr.decode("utf8", "replace"))

jupyter_client/ssh/forward.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ def handle(self):
6262
return
6363

6464
logger.debug(
65-
"Connected! Tunnel open %r -> %r -> %r"
66-
% (
65+
"Connected! Tunnel open {!r} -> {!r} -> {!r}".format(
6766
self.request.getpeername(),
6867
chan.getpeername(),
6968
(self.chain_host, self.chain_port),

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ test = "mypy --install-types --non-interactive {args:.}"
111111
dependencies = [
112112
"black[jupyter]==23.3.0",
113113
"mdformat>0.7",
114-
"ruff==0.0.260",
114+
"ruff==0.0.263",
115115
]
116116
[tool.hatch.envs.lint.scripts]
117117
style = [
@@ -269,7 +269,8 @@ unfixable = [
269269
# N802 Function name `assertIn` should be lowercase
270270
# EM101 Exception must not use a string literal, assign to variable first
271271
# PLR2004 Magic value used in comparison
272-
"tests/*" = ["B011", "F841", "C408", "E402", "T201", "B007", "N802", "EM101", "EM102", "PLR2004"]
272+
# S603 `subprocess` call: check for execution of untrusted input
273+
"tests/*" = ["B011", "F841", "C408", "E402", "T201", "B007", "N802", "EM101", "EM102", "PLR2004", "S603"]
273274
# T201 `print` found
274275
"*app.py" = ["T201"]
275276
# F401 `._version.__version__` imported but unused

tests/signalkernel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def do_execute(
3939
"user_expressions": {},
4040
}
4141
if code == "start":
42-
child = Popen(["bash", "-i", "-c", "sleep 30"], stderr=PIPE)
42+
child = Popen(["bash", "-i", "-c", "sleep 30"], stderr=PIPE) # noqa
4343
self.children.append(child)
4444
reply["user_expressions"]["pid"] = self.children[-1].pid
4545
elif code == "check":

0 commit comments

Comments
 (0)