Skip to content

Commit bb48b50

Browse files
author
Axel Dahlberg
committed
Fixed linting errors
1 parent 5d95b5b commit bb48b50

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ exclude = docs, .git, .idea, __pycache__
44
ignore = E203 W291 W293 E743 E265 W605 F811 E741
55
max-line-length = 120
66
statistics = True
7+
per-file-ignores = */__init__.py:F401, */typing.py:F401

examples/apps/run_apps.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import sys
32

43
from simulaqron.run.simulate import simulate_apps

simulaqron/netqasm_backend/factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _return_msg(self, msg):
147147
"""
148148
Return a msg to the host.
149149
"""
150-
output = self.transport.write(msg)
150+
self.transport.write(msg)
151151

152152

153153
###############################################################################

simulaqron/tests/unittests/slow/pythonLib/test_single_qubit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import sys
3333

3434
from cqc.pythonLib import CQCConnection, qubit, CQCUnsuppError
35-
from simulaqron.settings import simulaqron_settings
35+
from simulaqron.settings import simulaqron_settings, SimBackend
3636
from simulaqron.network import Network
3737

3838

simulaqron/virtual_node/virtual.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,15 @@ def remote_netqasm_add_recv_list(self, fromName, from_epr_socket_id, to_epr_sock
601601
if not (to_epr_socket_id in self.qubit_recv):
602602
self.qubit_recv[to_epr_socket_id] = deque([])
603603

604-
self.qubit_recv[to_epr_socket_id].append(QubitNetQASM(fromName, self.myID.name, from_epr_socket_id, to_epr_socket_id, new_virt_num))
604+
self.qubit_recv[to_epr_socket_id].append(
605+
QubitNetQASM(
606+
fromName,
607+
self.myID.name,
608+
from_epr_socket_id,
609+
to_epr_socket_id,
610+
new_virt_num,
611+
)
612+
)
605613
self._logger.debug("Added a qubit on EPR socket ID %d to recv list", to_epr_socket_id)
606614

607615
def remote_netqasm_get_recv(self, to_epr_socket_id):

0 commit comments

Comments
 (0)