Skip to content

Commit b76236d

Browse files
[pre-commit.ci] pre-commit autoupdate (#364)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.12.12 → v0.13.0](astral-sh/ruff-pre-commit@v0.12.12...v0.13.0) - [github.com/pre-commit/mirrors-mypy: v1.17.1 → v1.18.1](pre-commit/mirrors-mypy@v1.17.1...v1.18.1) Co-authored-by: Bruno Oliveira <[email protected]>
1 parent 2fa3fa6 commit b76236d

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
hooks:
1414
- id: check-yaml
1515
- repo: https://github.com/astral-sh/ruff-pre-commit
16-
rev: v0.12.12
16+
rev: v0.13.0
1717
hooks:
1818
- id: ruff
1919
args: [ --fix ]
@@ -26,7 +26,7 @@ repos:
2626
args: ["--ignore", "D001"]
2727

2828
- repo: https://github.com/pre-commit/mirrors-mypy
29-
rev: 'v1.17.1'
29+
rev: 'v1.18.1'
3030
hooks:
3131
- id: mypy
3232
additional_dependencies:

src/execnet/gateway_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ def _no_longer_opened(self, id: int) -> None:
10071007
except KeyError:
10081008
pass
10091009
try:
1010-
callback, endmarker, strconfig = self._callbacks.pop(id)
1010+
callback, endmarker, _strconfig = self._callbacks.pop(id)
10111011
except KeyError:
10121012
pass
10131013
else:
@@ -1037,7 +1037,7 @@ def _local_receive(self, id: int, data) -> None:
10371037
# executes in receiver thread
10381038
channel = self._channels.get(id)
10391039
try:
1040-
callback, endmarker, strconfig = self._callbacks[id]
1040+
callback, _endmarker, strconfig = self._callbacks[id]
10411041
except KeyError:
10421042
queue = channel._items if channel is not None else None
10431043
if queue is None:

src/execnet/script/shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def clientside() -> NoReturn:
2626
inputlist = [sock, sys.stdin]
2727
try:
2828
while 1:
29-
r, w, e = select.select(inputlist, [], [])
29+
r, _w, _e = select.select(inputlist, [], [])
3030
if sys.stdin in r:
3131
line = input()
3232
sock.sendall((line + "\n").encode())

testing/test_gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def test_popen_stderr_tracing(
503503
monkeypatch.setenv("EXECNET_DEBUG", "2")
504504
gw = makegateway("popen")
505505
pid = gw.remote_exec("import os ; channel.send(os.getpid())").receive()
506-
out, err = capfd.readouterr()
506+
_out, err = capfd.readouterr()
507507
worker_line = "[%s] creating workergateway" % pid
508508
assert worker_line in err
509509
gw.exit()

testing/test_rsync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def test_rsync_default_reporting(
142142
rsync = RSync(source)
143143
rsync.add_target(gw1, dirs.dest1)
144144
rsync.send()
145-
out, err = capsys.readouterr()
145+
out, _err = capsys.readouterr()
146146
assert out.find("hello") != -1
147147

148148
def test_rsync_non_verbose(

testing/test_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def test_bool(dump, load) -> None:
155155

156156
def test_none(dump, load) -> None:
157157
p = dump("None")
158-
tp, s = load(p)
158+
_tp, s = load(p)
159159
assert s == "None"
160160

161161

testing/test_termination.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def test_close_initiating_remote_no_error(
102102
popen = subprocess.Popen(
103103
[anypython, str(p), str(execnetdir)], stdout=None, stderr=subprocess.PIPE
104104
)
105-
out, err = popen.communicate()
105+
_out, err = popen.communicate()
106106
print(err)
107107
errstr = err.decode("utf8")
108108
lines = [x for x in errstr.splitlines() if "*sys-package" not in x]
@@ -151,6 +151,6 @@ def flush(self):
151151
popen.stdout.readline()
152152
reply = pool.spawn(popen.communicate)
153153
reply.get(timeout=50)
154-
out, err = capfd.readouterr()
154+
_out, err = capfd.readouterr()
155155
lines = [x for x in err.splitlines() if "*sys-package" not in x]
156156
assert not lines or "Killed" in err

testing/test_threadpool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def wait_then_put() -> None:
164164

165165
pool.execmodel.start(wait_then_put)
166166
assert pool.waitall()
167-
out, err = capfd.readouterr()
167+
_out, err = capfd.readouterr()
168168
assert err == ""
169169

170170

0 commit comments

Comments
 (0)