@@ -190,7 +190,8 @@ def execute_instruction(self, packet: NPCPacket) -> ComResult: # dead: disable
190190 the action.
191191 """
192192 raise UOSUnsupportedError (
193- f"UOSInterfaces must over-ride { UOSInterface .execute_instruction .__name__ } prototype."
193+ "UOSInterfaces must over-ride "
194+ f"{ UOSInterface .execute_instruction .__name__ } prototype."
194195 )
195196
196197 @abstractmethod
@@ -208,7 +209,8 @@ def read_response(
208209 the action.
209210 """
210211 raise UOSUnsupportedError (
211- f"UOSInterfaces must over-ride { UOSInterface .read_response .__name__ } prototype."
212+ "UOSInterfaces must over-ride "
213+ f"{ UOSInterface .read_response .__name__ } prototype."
212214 )
213215
214216 @abstractmethod
@@ -222,7 +224,8 @@ def hard_reset(self) -> ComResult:
222224 the action.
223225 """
224226 raise UOSUnsupportedError (
225- f"UOSInterfaces must over-ride { UOSInterface .hard_reset .__name__ } prototype"
227+ "UOSInterfaces must over-ride "
228+ f"{ UOSInterface .hard_reset .__name__ } prototype"
226229 )
227230
228231 @abstractmethod
@@ -235,7 +238,7 @@ def open(self):
235238 the action.
236239 """
237240 raise UOSUnsupportedError (
238- f "UOSInterfaces must over-ride { UOSInterface .open .__name__ } prototype."
241+ "UOSInterfaces must over-ride " f" { UOSInterface .open .__name__ } prototype."
239242 )
240243
241244 @abstractmethod
@@ -248,7 +251,7 @@ def close(self):
248251 the action.
249252 """
250253 raise UOSUnsupportedError (
251- f "UOSInterfaces must over-ride { UOSInterface .close .__name__ } prototype."
254+ "UOSInterfaces must over-ride " f" { UOSInterface .close .__name__ } prototype."
252255 )
253256
254257 @abstractmethod
@@ -260,7 +263,7 @@ def is_active(self) -> bool:
260263 correctly.
261264 """
262265 raise UOSUnsupportedError (
263- f "UOSInterfaces must over-ride { UOSInterface .close .__name__ } prototype."
266+ "UOSInterfaces must over-ride " f" { UOSInterface .close .__name__ } prototype."
264267 )
265268
266269 @staticmethod
@@ -273,7 +276,8 @@ def enumerate_devices() -> list:
273276 correctly.
274277 """
275278 raise UOSUnsupportedError (
276- f"UOSInterfaces must over-ride { UOSInterface .enumerate_devices .__name__ } prototype."
279+ "UOSInterfaces must over-ride "
280+ f"{ UOSInterface .enumerate_devices .__name__ } prototype."
277281 )
278282
279283
@@ -363,7 +367,8 @@ def update_adc_samples(self, result: ComResult):
363367 for sample_index , pin in enumerate (result .tx_packet .payload ):
364368 if pin not in self .pins :
365369 raise UOSRuntimeError (
366- f"Can't update ADC samples on pin { pin } as it's invalid for { self .name } ."
370+ f"Can't update ADC samples on pin { pin } "
371+ f"as it's invalid for { self .name } ."
367372 )
368373 self .pins [pin ].adc_reading = ADCSample (
369374 sample_values [sample_index * 2 : sample_index * 2 + 2 ],
@@ -389,7 +394,8 @@ def update_gpio_samples(self, result: ComResult):
389394 pin = result .tx_packet .payload [2 * sample_index ]
390395 if pin not in self .pins :
391396 raise UOSRuntimeError (
392- f"Can't update GPIO samples on pin { pin } as it's invalid for { self .name } ."
397+ f"Can't update GPIO samples on pin { pin } "
398+ f"as it's invalid for { self .name } ."
393399 )
394400 self .pins [pin ].gpio_reading = DigitalSample (sample_values [sample_index ])
395401 logger .debug (
0 commit comments