Skip to content

Commit f1b70bd

Browse files
committed
Execute pre-commit run in all files
1 parent 428f5d4 commit f1b70bd

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

src/execnet/gateway_base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ class GatewayReceivedTerminate(Exception):
596596

597597
def geterrortext(excinfo, format_exception=traceback.format_exception, sysex=sysex):
598598
try:
599-
l = format_exception(*excinfo)
599+
l = format_exception(*excinfo) # noqa:E741
600600
errortext = "".join(l)
601601
except sysex:
602602
raise
@@ -633,6 +633,7 @@ class TimeoutError(IOError):
633633

634634
class Channel:
635635
"Communication channel between two Python Interpreter execution points."
636+
636637
RemoteError = RemoteError
637638
TimeoutError = TimeoutError
638639
_INTERNALWAKEUP = 1000
@@ -1543,7 +1544,7 @@ def _save_integral(self, i, short_op, long_op):
15431544
def save_int(self, i):
15441545
self._save_integral(i, opcode.INT, opcode.LONGINT)
15451546

1546-
def save_long(self, l):
1547+
def save_long(self, l): # noqa:E741
15471548
self._save_integral(l, opcode.LONG, opcode.LONGLONG)
15481549

15491550
def save_float(self, flt):

src/execnet/gateway_io.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
44
creates io instances used for gateway io
55
"""
6-
import os
76
import shlex
87
import sys
98

@@ -228,4 +227,4 @@ def control(data):
228227

229228

230229
if __name__ == "__channelexec__":
231-
serve_proxy_io(channel) # type: ignore[name-defined]
230+
serve_proxy_io(channel) # type: ignore[name-defined] # noqa:F821

src/execnet/rsync_remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ def receive_directory_structure(path, relcomponents):
114114

115115

116116
if __name__ == "__channelexec__":
117-
serve_rsync(channel) # type: ignore[name-defined]
117+
serve_rsync(channel) # type: ignore[name-defined] # noqa:F821

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():
2626
while 1:
2727
r, w, e = select.select(inputlist, [], [])
2828
if sys.stdin in r:
29-
line = raw_input()
29+
line = raw_input() # noqa:F821
3030
sock.sendall(line + "\n")
3131
if sock in r:
3232
line = sock.recv(4096)

testing/test_threadpool.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
import sys
32

43
import pytest
54
from execnet.gateway_base import WorkerPool
@@ -61,7 +60,7 @@ def first():
6160

6261

6362
def test_waitfinish_on_reply(pool):
64-
l = []
63+
l = [] # noqa:E741
6564
reply = pool.spawn(lambda: l.append(1))
6665
reply.waitfinish()
6766
assert l == [1]

0 commit comments

Comments
 (0)